mirror of
git://github.com/lxc/lxc
synced 2025-09-03 02:19:32 +00:00
coverity: null check after dereference
we actually meant to check *p not p. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
@@ -3769,7 +3769,7 @@ static char *get_field(char *src, int nfields)
|
||||
for (i = 0; i < nfields; i++) {
|
||||
while (*p && *p != ' ' && *p != '\t')
|
||||
p++;
|
||||
if (!p)
|
||||
if (!*p)
|
||||
break;
|
||||
p++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user