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

if MALLOC_CHECK_ env var contains an empty string.
This commit is contained in:
Ulrich Drepper 2006-04-24 17:26:23 +00:00
parent cf6ada44a2
commit ceba6be798
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-24 Jakub Jelinek <jakub@redhat.com>
* malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init
if MALLOC_CHECK_ env var contains an empty string.
2006-04-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.

View File

@ -551,8 +551,8 @@ ptmalloc_init (void)
}
s = getenv("MALLOC_CHECK_");
#endif
if(s) {
if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0'));
if(s && s[0]) {
mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0'));
if (check_action != 0)
__malloc_check_init();
}