diff options
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 2 | ||||
-rw-r--r-- | src/util/amount.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 2389c0753..9997ff1c9 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -1098,7 +1098,7 @@ main (int argc, if (NULL != input_filename) { if (-1 != fh) - close (fh); + GNUNET_break (0 == close (fh)); ret = run_single_request (); } else diff --git a/src/util/amount.c b/src/util/amount.c index c15eeaafd..e50d9ad18 100644 --- a/src/util/amount.c +++ b/src/util/amount.c @@ -686,7 +686,8 @@ TALER_amount_divide (struct TALER_Amount *result, modr = (modr * TALER_AMOUNT_FRAC_BASE) + result->fraction; result->fraction = (uint32_t) (modr / divisor); /* 'fraction' could now be larger than #TALER_AMOUNT_FRAC_BASE, so we must normalize */ - TALER_amount_normalize (result); + GNUNET_assert (GNUNET_SYSERR != + TALER_amount_normalize (result)); } |