From fb84cf969877d5b23d831b30cbaac5ddfa7d3017 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 7 Dec 2023 22:45:20 +0900 Subject: -fix potential uninitialized variable in fakebank logic --- src/bank-lib/fakebank_twg_history.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bank-lib/fakebank_twg_history.c') diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c index 1d70ed127..35cc6587f 100644 --- a/src/bank-lib/fakebank_twg_history.c +++ b/src/bank-lib/fakebank_twg_history.c @@ -147,6 +147,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( if ( (GNUNET_TIME_relative_is_zero (hc->ha.lp_timeout)) && (0 < hc->ha.delta)) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -160,6 +161,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( } if (h->in_shutdown) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; @@ -400,6 +402,7 @@ TALER_FAKEBANK_twg_get_credit_history_ ( if (GNUNET_TIME_relative_is_zero (hc->ha.lp_timeout) && (0 < hc->ha.delta)) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -411,6 +414,7 @@ TALER_FAKEBANK_twg_get_credit_history_ ( } if (h->in_shutdown) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; -- cgit v1.2.3