mirror of git://sourceware.org/git/glibc.git
(__nscd_getgrouplist): Add assert.
This commit is contained in:
parent
927f0673b3
commit
f7fa2b1951
|
|
@ -128,8 +128,12 @@ __nscd_getgrouplist (const char *user, gid_t group, long int *size,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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. */
|
/* Check whether GROUP is part of the mix. If not, add it. */
|
||||||
if (retval >= 0)
|
if (retval >= 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue