diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-04-03 23:31:18 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-04-04 00:14:02 +0200 |
commit | b48013bd561e5f10bef55091f320356fd5fa6f6f (patch) | |
tree | 4451aaf472bf96d74c30c2adfe5e98950ebdbf71 /src/exchange-lib/testing_api_cmd_track.c | |
parent | 3e191f3b080f692bbb80c66f5c24736955f3f46d (diff) | |
download | exchange-b48013bd561e5f10bef55091f320356fd5fa6f6f.tar.xz |
fix compiler warning
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_track.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_track.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_cmd_track.c b/src/exchange-lib/testing_api_cmd_track.c index 3f14c5110..bbad7b784 100644 --- a/src/exchange-lib/testing_api_cmd_track.c +++ b/src/exchange-lib/testing_api_cmd_track.c @@ -519,16 +519,15 @@ track_transfer_cb return; } - switch (http_status) - { - - if ( - (NULL == tts->expected_total_amount) || - (NULL == tts->expected_wire_fee)) + if ( (NULL == tts->expected_total_amount) || + (NULL == tts->expected_wire_fee) ) GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Expected amount and fee not specified, " "likely to segfault...\n"); + + switch (http_status) + { case MHD_HTTP_OK: if (GNUNET_OK != TALER_string_to_amount (tts->expected_total_amount, |