aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-18 18:59:11 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-18 18:59:11 +0200
commit5cec88e87e987d80905e1a9b810c0e77c051f7bf (patch)
treee3f1254c92be280d33f0144c2e42b6cdcdeda071 /src/bank-lib/fakebank.c
parent67559ad6261e6d272df6665c8c0e124fd795a6eb (diff)
-fix segv
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r--src/bank-lib/fakebank.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 673135d81..06bfae0ad 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -866,7 +866,8 @@ TALER_FAKEBANK_check_empty (struct TALER_FAKEBANK_Handle *h)
{
struct Transaction *t = h->transactions[i];
- if (t->unchecked)
+ if ( (NULL != t) &&
+ (t->unchecked) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Expected empty transaction set, but I have:\n");