]> sourceware.org Git - glibc.git/commitdiff
* malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init cvs/fedora-glibc-20060424T2027
authorUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:26:23 +0000 (17:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:26:23 +0000 (17:26 +0000)
if MALLOC_CHECK_ env var contains an empty string.

ChangeLog
malloc/arena.c

index b72a1f01477ff519f1bcf8da86616d53a39c029c..5e1ca232fc1cf81430faae8acef7c983bccd34fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 4d95462f26fae87f15c0db1515b49c05d452ed14..6f0a9df8f1c654ccd4d5932480f0f79b821ebb5b 100644 (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();
   }
This page took 0.05771 seconds and 5 git commands to generate.