+2011-04-21 Ulrich Drepper <drepper@gmail.com>
+
+ * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
+ problem in reallocation in last patch.
+
2011-04-20 Ulrich Drepper <drepper@gmail.com>
* sunrpc/Makefile: Move inclusion of Rules.
size_t newbuflen = 2 * buflen;
if (buffer_use_malloc || ! __libc_use_alloca (buflen + newbuflen))
{
- char *newbuf = realloc (buffer, buflen);
+ void *newbuf = realloc (buffer_use_malloc ? buffer : NULL,
+ buflen);
if (newbuf == NULL)
{
*errnop = ENOMEM;