diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/json.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/json.c b/src/util/json.c index 42f146463..e4b0831a4 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -291,11 +291,11 @@ TALER_json_to_amount (json_t *json, memset (r_amount, 0, sizeof (struct TALER_Amount)); - if (-1 == json_unpack (json, - "{s:I, s:I, s:s}", - "value", &value, - "fraction", &fraction, - "currency", ¤cy)) + if (0 != json_unpack (json, + "{s:I, s:I, s:s}", + "value", &value, + "fraction", &fraction, + "currency", ¤cy)) { GNUNET_break_op (0); return GNUNET_SYSERR; |