summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-07 15:12:27 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-07 15:12:27 +0100
commitfb02619f98eca93de71aaee9c7c8d83ac77025bc (patch)
tree06a861074b00cf64e7d764b9e252728331023d8a
parent7ad9b4f27f1a8f784e9e5f6699b86c953bdeddf2 (diff)
downloadexchange-fb02619f98eca93de71aaee9c7c8d83ac77025bc.tar.gz
exchange-fb02619f98eca93de71aaee9c7c8d83ac77025bc.tar.bz2
exchange-fb02619f98eca93de71aaee9c7c8d83ac77025bc.zip
-more loggingv0.9.4a
-rw-r--r--src/util/amount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index 88f4b6aae..ee50a9bca 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -261,7 +261,10 @@ enum GNUNET_GenericReturnValue
TALER_amount_is_valid (const struct TALER_Amount *amount)
{
if (amount->value > TALER_AMOUNT_MAX_VALUE)
+ {
+ GNUNET_break (0);
return GNUNET_SYSERR;
+ }
return ('\0' != amount->currency[0]) ? GNUNET_OK : GNUNET_NO;
}