-fix unsused variable

This commit is contained in:
Özgür Kesim 2022-10-03 11:21:07 +02:00
parent 12736abcf7
commit e1bf3661ec
Signed by: oec
GPG Key ID: 3D76A56D79EDD9D7

View File

@ -4259,13 +4259,14 @@ do_extensions_show (char *const *args)
it = it->next) it = it->next)
{ {
const struct TALER_Extension *extension = it->extension; const struct TALER_Extension *extension = it->extension;
int ret;
GNUNET_assert (0 == ret = json_object_set_new (exts,
json_object_set_new (exts, extension->name,
it->extension->name, extension->config_to_json (extension));
it->extension->config_to_json ( GNUNET_assert (-1 != ret);
it->extension)));
} }
obj = GNUNET_JSON_PACK ( obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_object_steal ("extensions", GNUNET_JSON_pack_object_steal ("extensions",
exts)); exts));