summaryrefslogtreecommitdiff
path: root/src/auditor/taler-helper-auditor-wire.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-10-26 15:17:46 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-10-26 15:17:46 +0200
commit9978bc9da3fedaa4a4660670f6500b8838bbf4c8 (patch)
tree4dc683386be9d7f80bd42ab8932b2720a2cbcd51 /src/auditor/taler-helper-auditor-wire.c
parent0bd3b90d5d9be07aa1be546a43559fb853e6fa8a (diff)
downloadexchange-9978bc9da3fedaa4a4660670f6500b8838bbf4c8.tar.gz
exchange-9978bc9da3fedaa4a4660670f6500b8838bbf4c8.tar.bz2
exchange-9978bc9da3fedaa4a4660670f6500b8838bbf4c8.zip
-initialize final_balance even if audit failed hard
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-rw-r--r--src/auditor/taler-helper-auditor-wire.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index d8d62fbe2..7d5e8a933 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -728,6 +728,12 @@ commit (enum GNUNET_DB_QueryStatus qs)
&total_drained);
}
}
+ else
+ {
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_set_zero (TALER_ARL_currency,
+ &final_balance));
+ }
if (0 > qs)
{
if (GNUNET_DB_STATUS_SOFT_ERROR == qs)