diff options
-rw-r--r-- | lib/getugroups.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/getugroups.c b/lib/getugroups.c index 01d36ff10..d76517cfc 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -52,8 +52,7 @@ getugroups (int maxcount, GETGROUPS_T *grouplist, char *username, gid_t gid) register int count = 0; if (maxcount != 0) - grouplist[count] = gid; - ++count; + grouplist[count++] = gid; setgrent (); while ((grp = getgrent ()) != 0) |