projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
927f067
)
(__nscd_getgrouplist): Add assert.
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 1 Oct 2004 21:35:08 +0000
(21:35 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 1 Oct 2004 21:35:08 +0000
(21:35 +0000)
nscd/nscd_initgroups.c
patch
|
blob
|
history
diff --git
a/nscd/nscd_initgroups.c
b/nscd/nscd_initgroups.c
index
d6cb000
..
3e4d926
100644
(file)
--- a/
nscd/nscd_initgroups.c
+++ b/
nscd/nscd_initgroups.c
@@
-128,8
+128,12
@@
__nscd_getgrouplist (const char *user, gid_t group, long int *size,
}
}
else
- /* No group found yet. */
- retval = 0;
+ {
+ /* No group found yet. */
+ retval = 0;
+
+ assert (*size >= 1);
+ }
/* Check whether GROUP is part of the mix. If not, add it. */
if (retval >= 0)