diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-30 17:51:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-30 17:51:39 +0200 |
commit | ab4aa4dcfd3477971b3fb0c81a4caffff953c145 (patch) | |
tree | 2b6ce37666cdf30323cf9c108dd6f04349c8a9d0 /src/lib | |
parent | 7b25787a4b8ac0a0b3cbc2174ba3cac9c564346a (diff) |
-add batch withdraw to test suite
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_batch_withdraw.c | 3 | ||||
-rw-r--r-- | src/lib/exchange_api_batch_withdraw2.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/exchange_api_batch_withdraw.c b/src/lib/exchange_api_batch_withdraw.c index ce5de3fc2..295695d8f 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 314bca0c3..52da9b401 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)) { |