From b7b9b901fe19fc9817675762ee1318b9fe78484e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 9 Mar 1999 16:10:30 +0000 Subject: [PATCH] fix small thinko --- lib/getugroups.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/getugroups.c b/lib/getugroups.c index 01d36ff109..d76517cfc6 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) -- 2.30.2