From cb60a5695d330de0feea2fb4800ca853a8ffe0ed Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Sep 2023 12:51:16 +0200 Subject: -fix regression --- src/exchange/taler-exchange-httpd_batch-deposit.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c b/src/exchange/taler-exchange-httpd_batch-deposit.c index a8bf40d2b..894f8fb4e 100644 --- a/src/exchange/taler-exchange-httpd_batch-deposit.c +++ b/src/exchange/taler-exchange-httpd_batch-deposit.c @@ -643,10 +643,11 @@ TEH_handler_batch_deposit (struct TEH_RequestContext *rc, GNUNET_NZL (bd->num_cdis)]; struct TALER_Amount deposit_fees[GNUNET_NZL (bd->num_cdis)]; enum GNUNET_GenericReturnValue res; + unsigned int i; bd->cdis = cdis; dc.deposit_fees = deposit_fees; - for (unsigned int i = 0; inum_cdis; i++) + for (i = 0; inum_cdis; i++) { struct TALER_Amount amount_without_fee; @@ -668,13 +669,13 @@ TEH_handler_batch_deposit (struct TEH_RequestContext *rc, &dc.policy_details.accumulated_total, &dc.policy_details.accumulated_total, &amount_without_fee)); - if (GNUNET_OK != res) - { - for (unsigned int j = 0; j