diff options
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 7a33577c..d0265d5c 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -2132,8 +2132,9 @@ process_deposits_for_refund_cb (void *cls, struct TALER_Amount deposit_amount_with_fee[num_results]; struct TALER_Amount deposit_refund_fee[num_results]; - TALER_amount_get_zero (ctx->refund->currency, - ¤t_refund); + GNUNET_assert (GNUNET_OK == + TALER_amount_get_zero (ctx->refund->currency, + ¤t_refund)); /* Pass 1: Collect amount of existing refunds into current_refund. * Also store existing refunded amount for each deposit in deposit_refund. */ @@ -2170,8 +2171,9 @@ process_deposits_for_refund_cb (void *cls, GNUNET_PQ_query_param_end }; - TALER_amount_get_zero (ctx->refund->currency, - &ictx.refunded_amount); + GNUNET_assert (GNUNET_OK == + TALER_amount_get_zero (ctx->refund->currency, + &ictx.refunded_amount)); ictx.err = GNUNET_OK; /* no error so far */ ires = GNUNET_PQ_eval_prepared_multi_select (ctx->pg->conn, "find_refunds", |