From ab4aa4dcfd3477971b3fb0c81a4caffff953c145 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 May 2022 17:51:39 +0200 Subject: -add batch withdraw to test suite --- src/lib/exchange_api_batch_withdraw.c | 3 +++ src/lib/exchange_api_batch_withdraw2.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_batch_withdraw.c b/src/lib/exchange_api_batch_withdraw.c index ce5de3fc..295695d8 100644 --- a/src/lib/exchange_api_batch_withdraw.c +++ b/src/lib/exchange_api_batch_withdraw.c @@ -161,6 +161,9 @@ handle_reserve_batch_withdraw_finished ( struct TALER_EXCHANGE_PrivateCoinDetails coins[wh->num_coins]; wh->wh2 = NULL; + memset (coins, + 0, + sizeof (coins)); if (blind_sigs_length != wh->num_coins) { GNUNET_break_op (0); diff --git a/src/lib/exchange_api_batch_withdraw2.c b/src/lib/exchange_api_batch_withdraw2.c index 314bca0c..52da9b40 100644 --- a/src/lib/exchange_api_batch_withdraw2.c +++ b/src/lib/exchange_api_batch_withdraw2.c @@ -129,7 +129,7 @@ reserve_batch_withdraw_ok (struct TALER_EXCHANGE_BatchWithdraw2Handle *wh, }; if (GNUNET_OK != - GNUNET_JSON_parse (json, + GNUNET_JSON_parse (j, spec, NULL, NULL)) { -- cgit v1.2.3