2006-04-24 Jakub Jelinek * malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init if MALLOC_CHECK_ env var contains an empty string. --- libc/malloc/arena.c 6 Mar 2006 06:18:35 -0000 1.20 +++ libc/malloc/arena.c 24 Apr 2006 08:55:04 -0000 @@ -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(); }