summaryrefslogtreecommitdiff
path: root/lib/getugroups.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-03-09 16:10:30 +0000
committerJim Meyering <jim@meyering.net>1999-03-09 16:10:30 +0000
commitfbaac7ba2936939d97eb9458431a7135c3c754d6 (patch)
treea2f6180de5837c26acf58404d771bb48d1340163 /lib/getugroups.c
parent959eb64fb487e5c14106859def715acaa6b6613e (diff)
downloadcoreutils-fbaac7ba2936939d97eb9458431a7135c3c754d6.tar.xz
fix small thinko
Diffstat (limited to 'lib/getugroups.c')
-rw-r--r--lib/getugroups.c3
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)