From a2c99f173fb4d1bb7d72a5f1b1791211e71bb414 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Oct 2022 00:18:35 +0200 Subject: -DCE --- src/bank-lib/fakebank.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 0123f7c51..ebdb54356 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -3722,16 +3722,11 @@ handle_bank_access (struct TALER_FAKEBANK_Handle *h, if ('/' == *end_acc) { const char *wid = end_acc + 1; + const char *opid = strchr (wid, + '/'); char *wi; - const char *opid; - if (NULL != end_acc) - opid = strchr (wid, - '/'); - else - opid = NULL; - if ( (NULL == end_acc) || - (NULL == opid) || + if ( (NULL == opid) || ( (0 != strcmp (opid, "/abort")) && (0 != strcmp (opid, -- cgit v1.2.3