diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-03 10:44:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-03 10:44:57 +0200 |
commit | c241694ccb6de36971a27f144433521f30f92fa3 (patch) | |
tree | 6d42cca8040e0f568ce7550290c30edb18b26b34 /src/bank-lib/fakebank_history.c | |
parent | 2cea0eb4d2ee117a48703370a4ff4be6b275df0f (diff) | |
download | exchange-c241694ccb6de36971a27f144433521f30f92fa3.tar.gz exchange-c241694ccb6de36971a27f144433521f30f92fa3.tar.bz2 exchange-c241694ccb6de36971a27f144433521f30f92fa3.zip |
check more return values
Diffstat (limited to 'src/bank-lib/fakebank_history.c')
-rw-r--r-- | src/bank-lib/fakebank_history.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bank-lib/fakebank_history.c b/src/bank-lib/fakebank_history.c index a3553b65..4cd0dc4c 100644 --- a/src/bank-lib/fakebank_history.c +++ b/src/bank-lib/fakebank_history.c @@ -227,8 +227,9 @@ TFH_build_history_response (struct MHD_Connection *connection, while (NULL != history_element) { - json_array_append_new (history, - history_element->element); + GNUNET_assert (0 == + json_array_append_new (history, + history_element->element)); history_element = history_element->next; if (NULL != history_element) GNUNET_free_non_null (history_element->prev); |