mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-12 10:55:54 +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:
parent
5b457f7bd8
commit
df9b1831fb
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user