mirror of
https://github.com/bol-van/zapret2.git
synced 2026-08-31 06:11:30 +04:00
Merge pull request #181 from goodrussian666/master
code cleanup based on cppcheck
This commit is contained in:
+3
-6
@@ -1201,12 +1201,9 @@ static bool parse_uid(char *opt, uid_t *uid, gid_t *gid, int *gid_count, int max
|
|||||||
c = *e;
|
c = *e;
|
||||||
*e = 0;
|
*e = 0;
|
||||||
}
|
}
|
||||||
if (p)
|
if (sscanf(p, "%u", &u) != 1) return false;
|
||||||
{
|
if (*gid_count >= max_gids) return false;
|
||||||
if (sscanf(p, "%u", &u) != 1) return false;
|
gid[(*gid_count)++] = (gid_t)u;
|
||||||
if (*gid_count >= max_gids) return false;
|
|
||||||
gid[(*gid_count)++] = (gid_t)u;
|
|
||||||
}
|
|
||||||
if (e) *e++ = c;
|
if (e) *e++ = c;
|
||||||
p = e;
|
p = e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user