diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-12 22:16:40 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-12 22:16:40 +0200 |
commit | 4702b156dc8130a842745035c936de8817c7c700 (patch) | |
tree | f1c2d6c9013d2fa904c82b6cbc2b1effb9c6e16a /src/testing/testing_api_cmd_reserve_open.c | |
parent | 3b34acdb72cd450974a3bbde6169f1bf9644a302 (diff) | |
download | exchange-4702b156dc8130a842745035c936de8817c7c700.tar.xz |
-work on reserve control tests
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_open.c')
-rw-r--r-- | src/testing/testing_api_cmd_reserve_open.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |