From 4702b156dc8130a842745035c936de8817c7c700 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Oct 2022 22:16:40 +0200 Subject: -work on reserve control tests --- src/testing/testing_api_cmd_reserve_open.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/testing/testing_api_cmd_reserve_open.c') diff --git a/src/testing/testing_api_cmd_reserve_open.c b/src/testing/testing_api_cmd_reserve_open.c index 67209d02e..cc0e649d2 100644 --- a/src/testing/testing_api_cmd_reserve_open.c +++ b/src/testing/testing_api_cmd_reserve_open.c @@ -319,6 +319,7 @@ TALER_TESTING_cmd_reserve_open (const char *label, ss->cpl++; va_end (ap); GNUNET_assert (0 == (ss->cpl % 2)); + ss->cpl /= 2; /* name and amount per coin */ ss->cd = GNUNET_new_array (ss->cpl, struct CoinDetail); i = 0; @@ -326,11 +327,12 @@ TALER_TESTING_cmd_reserve_open (const char *label, expected_response_code); while (NULL != (name = va_arg (ap, const char *))) { - ss->cd[i].name = name; + struct CoinDetail *cd = &ss->cd[i]; + cd->name = name; GNUNET_assert (GNUNET_OK == TALER_string_to_amount (va_arg (ap, const char *), - &ss->cd[i].amount)); + &cd->amount)); i++; } va_end (ap); -- cgit v1.2.3