commit 14d78468e99b3cc48cfc33d7f9b967a98dc85a9f
parent 2d0b9fe9bc34a6ac93f2d19fd68fd187889eda3e
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 15 Nov 2025 19:54:50 +0100
-fix compiler warning
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
@@ -185,6 +185,8 @@ parse_amount_any_array (void *cls,
{
size_t len = json_array_size (root);
+ json_t *entry;
+ size_t idx;
if (NULL != ctx->len)
*ctx->len = len;
@@ -195,9 +197,6 @@ parse_amount_any_array (void *cls,
}
*out = GNUNET_new_array (len,
struct TALER_Amount);
- json_t *entry;
- size_t idx;
-
json_array_foreach (root, idx, entry) {
const char *amount_str;