yet another TALER_amount_get_zero with missing rval check

This commit is contained in:
Christian Grothoff 2017-10-06 22:08:35 +02:00
parent 1c725c055e
commit 1261971987
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2186,8 +2186,9 @@ check_wire_out_cb (void *cls,
wcc.method = json_string_value (method);
wcc.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
wcc.date = date;
TALER_amount_get_zero (amount->currency,
&wcc.total_deposits);
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (amount->currency,
&wcc.total_deposits));
if (GNUNET_OK !=
TALER_JSON_hash (wire,
&wcc.h_wire))