Merge pull request #181 from goodrussian666/master

code cleanup based on cppcheck
This commit is contained in:
bol-van
2026-04-14 06:03:30 +00:00
committed by GitHub
-3
View File
@@ -1201,12 +1201,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;
}