mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-12 09:12:12 +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++) {
|
for (i = 0; i < nfields; i++) {
|
||||||
while (*p && *p != ' ' && *p != '\t')
|
while (*p && *p != ' ' && *p != '\t')
|
||||||
p++;
|
p++;
|
||||||
if (!p)
|
if (!*p)
|
||||||
break;
|
break;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user