From e1bf3661ecc4a884a2ee4545a93621e649c740f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 3 Oct 2022 11:21:07 +0200 Subject: [PATCH] -fix unsused variable --- src/exchange-tools/taler-exchange-offline.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index 6a4dcb8f4..93cf05bd0 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -4259,13 +4259,14 @@ do_extensions_show (char *const *args) it = it->next) { const struct TALER_Extension *extension = it->extension; + int ret; - GNUNET_assert (0 == - json_object_set_new (exts, - it->extension->name, - it->extension->config_to_json ( - it->extension))); + ret = json_object_set_new (exts, + extension->name, + extension->config_to_json (extension)); + GNUNET_assert (-1 != ret); } + obj = GNUNET_JSON_PACK ( GNUNET_JSON_pack_object_steal ("extensions", exts));