diff options
author | Jim Meyering <jim@meyering.net> | 1999-03-09 16:10:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-03-09 16:10:30 +0000 |
commit | fbaac7ba2936939d97eb9458431a7135c3c754d6 (patch) | |
tree | a2f6180de5837c26acf58404d771bb48d1340163 /lib/getugroups.c | |
parent | 959eb64fb487e5c14106859def715acaa6b6613e (diff) | |
download | coreutils-fbaac7ba2936939d97eb9458431a7135c3c754d6.tar.xz |
fix small thinko
Diffstat (limited to 'lib/getugroups.c')
-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) |