commit b290ca30c0b7b7e10578cb82d25e39e2c7d7ee62
parent e090d69cb0b7d1a4ce58256d500f3b29f84341f6
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 20 Jan 2020 01:40:29 +0100
fix
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git 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
@@ -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));
}