diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-07 10:47:13 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-07 10:47:13 +0100 |
commit | a2e6adcd69000994a579223d97867c4aee4f04f2 (patch) | |
tree | fa2704e475f24cd0df68edfe375ec90a18de81c0 /src | |
parent | 06702d9de3d7b1abd34a8aa619a1195e764a0a8b (diff) |
fix uninitialized 'in_shutdown' variable
Diffstat (limited to 'src')
-rw-r--r-- | src/bank-lib/fakebank_twg_history.c | 2 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_kyc-proof.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c index 35cc6587f..c10358c1a 100644 --- a/src/bank-lib/fakebank_twg_history.c +++ b/src/bank-lib/fakebank_twg_history.c @@ -148,6 +148,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( (0 < hc->ha.delta)) { acc_payto_uri = hc->acc->payto_uri; + in_shutdown = h->in_shutdown; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -162,6 +163,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( if (h->in_shutdown) { acc_payto_uri = hc->acc->payto_uri; + in_shutdown = h->in_shutdown; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; diff --git a/src/exchange/taler-exchange-httpd_kyc-proof.c b/src/exchange/taler-exchange-httpd_kyc-proof.c index b223e6a1a..bad377a2a 100644 --- a/src/exchange/taler-exchange-httpd_kyc-proof.c +++ b/src/exchange/taler-exchange-httpd_kyc-proof.c @@ -327,6 +327,7 @@ proof_cb ( case TALER_KYCLOGIC_STATUS_PROVIDER_FAILED: case TALER_KYCLOGIC_STATUS_USER_ABORTED: case TALER_KYCLOGIC_STATUS_ABORTED: + GNUNET_assert (NULL == kpc->kat); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "KYC process %s/%s (Row #%llu) failed: %d\n", provider_user_id, |