From 21b60063a9ae5b12e1aa0afde91c4daef6a0d9d3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 17 Jun 2015 00:23:14 +0000 Subject: [PATCH] iscsi-scstd: Fix a dereference-before-null-check Detected by Coverity. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6370 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- 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';