commit c68e54e97cfd7e94e9bc108e2af17dcd82eb0401
parent 6a994eb595f4aa7bb5b015560119ec99238579ab
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 25 Mar 2026 18:10:43 +0100
allow amount arrays of length 0
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
@@ -190,8 +190,8 @@ parse_amount_any_array (void *cls,
*ctx->len = len;
if (0 == len)
{
- GNUNET_break_op (0);
- return GNUNET_SYSERR;
+ *out = NULL;
+ return GNUNET_OK;
}
*out = GNUNET_new_array (len,
struct TALER_Amount);