aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bank-lib/fakebank.c11
1 files changed, 3 insertions, 8 deletions
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,