changeset 1731:a4433a7602fd

fix small thinko
author Jim Meyering <jim@meyering.net>
date Tue, 09 Mar 1999 16:10:30 +0000
parents 05413a4755ee
children 16c93d56c8f6
files lib/getugroups.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/getugroups.c
+++ b/lib/getugroups.c
@@ -52,8 +52,7 @@
   register int count = 0;
 
   if (maxcount != 0)
-    grouplist[count] = gid;
-  ++count;
+    grouplist[count++] = gid;
 
   setgrent ();
   while ((grp = getgrent ()) != 0)