2006-04-24 Jakub Jelinek * malloc/arena.c (ptmalloc_init): Call mALLOPt with DEFAULT_CHECK_ACTION 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:54:16 -0000 @@ -552,7 +552,7 @@ ptmalloc_init (void) s = getenv("MALLOC_CHECK_"); #endif if(s) { - if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0')); + mALLOPt(M_CHECK_ACTION, s[0] ? (int)(s[0] - '0') : DEFAULT_CHECK_ACTION); if (check_action != 0) __malloc_check_init(); }