diff options
author | mbkma <[email protected]> | 2020-03-05 13:06:45 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-08 21:40:41 +0100 |
commit | b0117b1d5ae73916c6f0d289be1f693bb5f46824 (patch) | |
tree | 4751c73751ed9951ae5a1c5b93f04c84593c6974 /src/mate-calc-cmd.c | |
parent | 91962719d06ce16d8bc3523872b83fae4d151e10 (diff) | |
download | mate-calc-b0117b1d5ae73916c6f0d289be1f693bb5f46824.tar.bz2 mate-calc-b0117b1d5ae73916c6f0d289be1f693bb5f46824.tar.xz |
Port to GNU MPFR/MPC Library
For further information please visit:
https://www.mpfr.org/
http://www.multiprecision.org/mpc
Diffstat (limited to 'src/mate-calc-cmd.c')
-rw-r--r-- | src/mate-calc-cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mate-calc-cmd.c b/src/mate-calc-cmd.c index b4fb301..cf8db3d 100644 --- a/src/mate-calc-cmd.c +++ b/src/mate-calc-cmd.c @@ -27,7 +27,7 @@ solve(const char *equation) { int ret; MPEquationOptions options; - MPNumber z; + MPNumber z = mp_new(); gchar *result_str = NULL; memset(&options, 0, sizeof(options)); @@ -46,6 +46,7 @@ solve(const char *equation) printf("%s\n", result_str); } g_free(result_str); + mp_clear(&z); } |