set error code correctly, removes compiler warning

This commit is contained in:
Florian Dold 2017-12-08 17:07:20 +01:00
parent e75afb3164
commit 44aaaf9e93
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -174,6 +174,7 @@ handle_history_finished (void *cls,
switch (response_code)
{
case 0:
ec = TALER_EC_INTERNAL_INVARIANT_FAILURE;
break;
case MHD_HTTP_OK:
if (GNUNET_OK !=
@ -186,6 +187,7 @@ handle_history_finished (void *cls,
break;
}
response_code = MHD_HTTP_NO_CONTENT; /* signal end of list */
ec = TALER_EC_NONE;
break;
case MHD_HTTP_NO_CONTENT:
ec = TALER_EC_NONE;