aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-22 17:41:30 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-22 17:41:30 +0200
commit35133c1e67f67fe53329cb935824aed00c364a3f (patch)
tree3d0163f27e8196583b2be44576710aefa69e69dd
parent1cc87bf9fe868b10ba7ddc93a9bbac7407107b6a (diff)
downloadexchange-35133c1e67f67fe53329cb935824aed00c364a3f.tar.gz
exchange-35133c1e67f67fe53329cb935824aed00c364a3f.zip
-fix segv
-rw-r--r--src/bank-lib/fakebank.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 6eadb618a..f8c704f6c 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -2094,7 +2094,7 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h,
2094 uint64_t dir; 2094 uint64_t dir;
2095 bool skip = true; 2095 bool skip = true;
2096 2096
2097 overflow = (t->row_id != ha.start_idx); 2097 overflow = ( (NULL != t) && (t->row_id != ha.start_idx) );
2098 dir = (0 > ha.delta) ? (h->ram_limit - 1) : 1; 2098 dir = (0 > ha.delta) ? (h->ram_limit - 1) : 1;
2099 /* If account does not match, linear scan for 2099 /* If account does not match, linear scan for
2100 first matching account. */ 2100 first matching account. */