2
0
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:
Serge Hallyn
2014-05-21 11:53:11 -05:00
parent 5b457f7bd8
commit df9b1831fb

View File

@@ -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++;
}