From 9978bc9da3fedaa4a4660670f6500b8838bbf4c8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Oct 2022 15:17:46 +0200 Subject: -initialize final_balance even if audit failed hard --- src/auditor/taler-helper-auditor-wire.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/auditor') 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) -- cgit v1.2.3