fix small thinko
authorJim Meyering <jim@meyering.net>
Tue, 9 Mar 1999 16:10:30 +0000 (16:10 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 Mar 1999 16:10:30 +0000 (16:10 +0000)
lib/getugroups.c

index 01d36ff..d76517c 100644 (file)
@@ -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)