aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-22 22:07:05 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-22 22:07:05 +0100
commitecc66535e096aad7cd2c8cf8c15d309d65c1c888 (patch)
tree42d86fccc63640f3b6a5c8e6500acfd6c6a65756
parenta67800fb0d1d1e91c9c68538e0dd09cf4b06ff74 (diff)
-check rvalues
-rw-r--r--src/testing/testing_api_cmd_refund.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testing/testing_api_cmd_refund.c b/src/testing/testing_api_cmd_refund.c
index 578bee46b..516d64503 100644
--- a/src/testing/testing_api_cmd_refund.c
+++ b/src/testing/testing_api_cmd_refund.c
@@ -187,9 +187,10 @@ refund_run (void *cls,
&rs->che.details.refund.merchant_pub.eddsa_pub);
rs->che.details.refund.refund_fee = denom_pub->fees.refund;
rs->che.details.refund.sig_amount = refund_amount;
- TALER_amount_subtract (&rs->che.amount,
- &refund_amount,
- &rs->che.details.refund.refund_fee);
+ GNUNET_assert (0 <=
+ TALER_amount_subtract (&rs->che.amount,
+ &refund_amount,
+ &rs->che.details.refund.refund_fee));
rs->che.details.refund.rtransaction_id = rs->refund_transaction_id;
TALER_merchant_refund_sign (&rs->coin,
&h_contract_terms,