commit f8ca1f2c1d4a4de1f40e4f638885b64a906a95b8 parent 03c6aab2ec52b1ff413eb305c233a69e07df961c Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 12 Jul 2026 23:51:15 +0200 use correct loop bound Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c @@ -2677,7 +2677,7 @@ check_payment_sufficient (struct PayContext *pc) to deposit coins of another exchange or just because the previous answer was lost; thus, we must get the fee from the "dc" as that is guaranteed to be set! */ - for (unsigned int j = 0; j < pc->parse_pay.num_exchanges; j++) + for (size_t j = 0; j < pc->parse_pay.coins_cnt; j++) { const struct DepositConfirmation *dc = &pc->parse_pay.dc[j]; diff --git a/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c b/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c @@ -1199,7 +1199,7 @@ compute_totals_per_currency (struct UseContext *uc) unsigned int items_len = uc->parse_request.inventory.items_len; if (0 == items_len) - return GNUNET_OK; + return GNUNET_NO; for (size_t i = 0; i < items[0].pd.price_array_length; i++) { const struct TALER_Amount *price diff --git a/src/testing/testing_api_cmd_post_orders.c b/src/testing/testing_api_cmd_post_orders.c @@ -303,6 +303,7 @@ order_cb (struct OrdersState *ps, const struct TALER_TESTING_Command *order_cmd; const struct TALER_ClaimTokenP *prev_token; struct TALER_ClaimTokenP zero_token = {0}; + const struct TALER_ClaimTokenP *resp_token; order_cmd = TALER_TESTING_interpreter_lookup_command ( ps->is, @@ -316,7 +317,6 @@ order_cb (struct OrdersState *ps, TALER_TESTING_interpreter_fail (ps->is); return; } - const struct TALER_ClaimTokenP *resp_token; resp_token = (NULL != por->details.ok.token) ? por->details.ok.token diff --git a/src/testing/testing_api_cmd_post_using_templates.c b/src/testing/testing_api_cmd_post_using_templates.c @@ -281,6 +281,7 @@ post_using_templates_cb (struct PostUsingTemplatesState *tis, const struct TALER_TESTING_Command *order_cmd; const struct TALER_ClaimTokenP *prev_token; struct TALER_ClaimTokenP zero_token = {0}; + const struct TALER_ClaimTokenP *resp_token; order_cmd = TALER_TESTING_interpreter_lookup_command ( tis->is, @@ -294,7 +295,6 @@ post_using_templates_cb (struct PostUsingTemplatesState *tis, TALER_TESTING_interpreter_fail (tis->is); return; } - const struct TALER_ClaimTokenP *resp_token; resp_token = (NULL != por->details.ok.token) ? por->details.ok.token