fix compiler warning

This commit is contained in:
Florian Dold 2018-04-03 23:31:18 +02:00
parent 3e191f3b08
commit b48013bd56
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -519,16 +519,15 @@ track_transfer_cb
return; 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, GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Expected amount and fee not specified, " "Expected amount and fee not specified, "
"likely to segfault...\n"); "likely to segfault...\n");
switch (http_status)
{
case MHD_HTTP_OK: case MHD_HTTP_OK:
if (GNUNET_OK != if (GNUNET_OK !=
TALER_string_to_amount (tts->expected_total_amount, TALER_string_to_amount (tts->expected_total_amount,