From 9da649131ff75ae6f5776c7e9ca7bb15f2077d40 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 5 May 2015 14:34:43 +0200 Subject: [PATCH] iscsi-scstd: Fix a dereference-before-null-check Detected by Coverity. Signed-off-by: Bart Van Assche --- iscsi-scst/usr/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/config.c b/iscsi-scst/usr/config.c index 0e988e195..c1ac14ab2 100644 --- a/iscsi-scst/usr/config.c +++ b/iscsi-scst/usr/config.c @@ -245,7 +245,7 @@ static struct __qelem *account_list_get(struct target *target, int dir) char *config_sep_string(char **pp) { - char *p = *pp; + char *p; char *q; static char blank = '\0';