diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/initgroups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/initgroups.c b/src/linux/initgroups.c index ef9bc10a..545d1859 100644 --- a/src/linux/initgroups.c +++ b/src/linux/initgroups.c @@ -9,7 +9,7 @@ int setgroups(size_t, const gid_t *); int initgroups(const char *user, gid_t gid) { gid_t groups[NGROUPS_MAX]; - int count; + int count = NGROUPS_MAX; if (getgrouplist(user, gid, groups, &count) < 0) return -1; return setgroups(count, groups); } |