code cleanup based on cppcheck

nfq2/nfqws.c:1114:19: warning: Either the condition 'p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
This commit is contained in:
Your Name
2026-04-04 14:06:26 +02:00
parent e78382f3ad
commit d4aa4cc5b1
-3
View File
@@ -1116,12 +1116,9 @@ static bool parse_uid(char *opt, uid_t *uid, gid_t *gid, int *gid_count, int max
c = *e;
*e = 0;
}
if (p)
{
if (sscanf(p, "%u", &u) != 1) return false;
if (*gid_count >= max_gids) return false;
gid[(*gid_count)++] = (gid_t)u;
}
if (e) *e++ = c;
p = e;
}