diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-05-26 07:21:34 -0400 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-05-26 07:21:34 -0400 |
commit | de7a1c7e5bf46b6388ff6708e963c7bcc39a0db2 (patch) | |
tree | 6499d8a76899f699e5c03d04e28434750481497e /src | |
parent | 3c01b3c1d930b61b87053f623beff982042d0ad5 (diff) | |
download | merchant-de7a1c7e5bf46b6388ff6708e963c7bcc39a0db2.tar.gz merchant-de7a1c7e5bf46b6388ff6708e963c7bcc39a0db2.tar.bz2 merchant-de7a1c7e5bf46b6388ff6708e963c7bcc39a0db2.zip |
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 (limited to 'src')
-rw-r--r-- | src/lib/merchant_api_post_transfers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/merchant_api_post_transfers.c b/src/lib/merchant_api_post_transfers.c index 2e41ebb2..a9eaf288 100644 --- 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; |