diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-17 17:10:38 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-17 17:10:38 +0200 |
commit | 2f67dbebc572f1c70c3bfcb39fec45591aea9bc8 (patch) | |
tree | 4ae3819d40efd9cf8a2ba2c60d1bcd2019a19016 /src/util/json.c | |
parent | b1401f93da11d38d49a5117d4f717fec384e7176 (diff) | |
download | exchange-2f67dbebc572f1c70c3bfcb39fec45591aea9bc8.tar.xz |
test json-raw conversion, fix assertion
Diffstat (limited to 'src/util/json.c')
-rw-r--r-- | src/util/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/json.c b/src/util/json.c index 8abcef1c9..3d702b7be 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -294,7 +294,7 @@ TALER_json_to_data (json_t *json, EXITIF (NULL == (enc = json_string_value (json))); len = strlen (enc); - EXITIF ((((len * 5) / 8) + ((((len * 5) % 8) == 0) ? 0 : 1)) == out_size); + EXITIF (((len * 5) / 8) != out_size); EXITIF (GNUNET_OK != GNUNET_STRINGS_string_to_data (enc, len, out, out_size)); return GNUNET_OK; EXITIF_exit: |