From 8ce6d32f63a81e6ea61971859152e4a5ec3b7c40 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 20 Jan 2020 01:23:02 +0100 Subject: beautification --- src/json/json_helper.c | 2 +- src/json/json_wire.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/json') diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 70326b924..746b39e49 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -38,9 +38,9 @@ TALER_JSON_from_amount (const struct TALER_Amount *amount) char *amount_str = TALER_amount_to_string (amount); GNUNET_assert (NULL != amount_str); - { json_t *j = json_string (amount_str); + GNUNET_free (amount_str); return j; } diff --git a/src/json/json_wire.c b/src/json/json_wire.c index 8480b4e86..4fc4cfead 100644 --- a/src/json/json_wire.c +++ b/src/json/json_wire.c @@ -232,7 +232,6 @@ validate_iban (const char *iban) char *nbuf; unsigned long long dividend; unsigned long long remainder; - int nread; unsigned int i; unsigned int j; @@ -287,6 +286,8 @@ validate_iban (const char *iban) remainder = 0; for (unsigned int i = 0; i