From b48013bd561e5f10bef55091f320356fd5fa6f6f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 3 Apr 2018 23:31:18 +0200 Subject: fix compiler warning --- src/exchange-lib/testing_api_cmd_track.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_track.c') 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, -- cgit v1.2.3