-initialize final_balance even if audit failed hard

This commit is contained in:
Christian Grothoff 2022-10-26 15:17:46 +02:00
parent 0bd3b90d5d
commit 9978bc9da3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -728,6 +728,12 @@ commit (enum GNUNET_DB_QueryStatus qs)
&total_drained); &total_drained);
} }
} }
else
{
GNUNET_assert (GNUNET_OK ==
TALER_amount_set_zero (TALER_ARL_currency,
&final_balance));
}
if (0 > qs) if (0 > qs)
{ {
if (GNUNET_DB_STATUS_SOFT_ERROR == qs) if (GNUNET_DB_STATUS_SOFT_ERROR == qs)