aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-08 17:07:20 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-08 17:07:20 +0100
commit44aaaf9e933fc11998fae276ed2b958fdae265b7 (patch)
tree6d4bfb6971c765f4b61aeb1d27a32c26f074bc5b
parente75afb316484e7a55f913f6584d2a528918223f4 (diff)
set error code correctly, removes compiler warning
-rw-r--r--src/bank-lib/bank_api_history.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bank-lib/bank_api_history.c b/src/bank-lib/bank_api_history.c
index 3b8a83e13..fdc1e2a5b 100644
--- a/src/bank-lib/bank_api_history.c
+++ b/src/bank-lib/bank_api_history.c
@@ -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;