aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank_twg_history.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-22 22:24:37 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-22 22:24:37 +0100
commita7f7875619a067c1faf5282eec1ca8b16e1d612e (patch)
tree70f550980635afe74fecdd17ff1feee3a4697192 /src/bank-lib/fakebank_twg_history.c
parentb87ad62692d9e0235554fecc52862cfca128dfe8 (diff)
downloadexchange-a7f7875619a067c1faf5282eec1ca8b16e1d612e.tar.xz
-fix minor threading issue
Diffstat (limited to 'src/bank-lib/fakebank_twg_history.c')
-rw-r--r--src/bank-lib/fakebank_twg_history.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c
index c75b5c88b..e2c32a9eb 100644
--- a/src/bank-lib/fakebank_twg_history.c
+++ b/src/bank-lib/fakebank_twg_history.c
@@ -59,6 +59,7 @@ TALER_FAKEBANK_twg_get_debit_history_ (
struct Transaction *pos;
enum GNUNET_GenericReturnValue ret;
bool in_shutdown;
+ const char *acc_payto_uri;
if (NULL == cc)
{
@@ -266,6 +267,7 @@ TALER_FAKEBANK_twg_get_debit_history_ (
return MHD_YES;
}
in_shutdown = h->in_shutdown;
+ acc_payto_uri = hc->acc->payto_uri;
GNUNET_assert (0 ==
pthread_mutex_unlock (&h->big_lock));
finish:
@@ -288,7 +290,7 @@ finish:
MHD_HTTP_OK,
GNUNET_JSON_pack_string (
"debit_account",
- hc->acc->payto_uri),
+ acc_payto_uri),
GNUNET_JSON_pack_array_steal (
"outgoing_transactions",
h));