projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef0717
)
fix small thinko
author
Jim Meyering
<jim@meyering.net>
Tue, 9 Mar 1999 16:10:30 +0000
(16:10 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 9 Mar 1999 16:10:30 +0000
(16:10 +0000)
lib/getugroups.c
patch
|
blob
|
history
diff --git
a/lib/getugroups.c
b/lib/getugroups.c
index 01d36ff109eac5ac2c9065446c7a4a1b578ef802..d76517cfc6ab8eec1faa1f27c2f97cff4a188ad6 100644
(file)
--- 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)