[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 02/02: fix
From: |
gnunet |
Subject: |
[taler-exchange] 02/02: fix |
Date: |
Mon, 20 Jan 2020 01:40:33 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit b290ca30c0b7b7e10578cb82d25e39e2c7d7ee62
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jan 20 01:40:29 2020 +0100
fix
---
src/exchange/taler-exchange-httpd.c | 2 +-
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 2389c075..9997ff1c 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 c15eeaaf..e50d9ad1 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));
}
--
To stop receiving notification emails like this one, please contact
address@hidden.