From 296e27b92ab0367f414dc0e98b185531c8df06f3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jul 2015 08:54:55 +0200 Subject: -simplify parsing, make code compile without new util API --- src/util/json.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/util') 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; -- cgit v1.2.3