merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit de7a1c7e5bf46b6388ff6708e963c7bcc39a0db2
parent 3c01b3c1d930b61b87053f623beff982042d0ad5
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
Date:   Wed, 26 May 2021 07:21:34 -0400

move ‘deposit_sum’ decl upscope

This makes it available to all uses in the function,
not just in the ‘else’ clause (where it was before).

Diffstat:
Msrc/lib/merchant_api_post_transfers.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/merchant_api_post_transfers.c b/src/lib/merchant_api_post_transfers.c @@ -84,6 +84,7 @@ handle_post_transfers_finished (void *cls, { struct TALER_MERCHANT_PostTransfersHandle *pth = cls; const json_t *json = response; + json_t *deposit_sum = NULL; struct TALER_MERCHANT_HttpResponse hr = { .http_status = (unsigned int) response_code, .reply = json @@ -127,7 +128,6 @@ handle_post_transfers_finished (void *cls, { size_t deposit_sums_length; struct TALER_MERCHANT_TrackTransferDetail *details; - json_t *deposit_sum; unsigned int i; bool ok;