Commit df9b1831 by Serge Hallyn

coverity: null check after dereference

we actually meant to check *p not p. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 5b457f7b
......@@ -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++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment