* malloc/arena.c (ptmalloc_init): Don't call next_env_entry if

_environ is NULL.
This commit is contained in:
Roland McGrath 2002-12-27 00:37:06 +00:00
parent e48cf6786b
commit 08e49216e8
2 changed files with 46 additions and 40 deletions

View File

@ -1,3 +1,8 @@
2002-12-27 Jakub Jelinek <jakub@redhat.com>
* malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
_environ is NULL.
2002-12-27 Andreas Schwab <schwab@suse.de>
* Makerules ($(common-objpfx)%.make): Filter through

View File

@ -436,6 +436,7 @@ ptmalloc_init __MALLOC_P((void))
#ifdef _LIBC
secure = __libc_enable_secure;
s = NULL;
if (__builtin_expect (_environ != NULL, 1))
{
char **runp = _environ;
char *envline;