aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-28 18:25:52 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-28 18:25:52 +0000
commita19fe332c1be896a4b834b26f8f2ed4813f180f2 (patch)
tree94641139f5bd3bd827343b072eb5bf966e77d0fe /malloc/arena.c
parente9f4e84407c3ae51c6850a609cdcef6491b499f8 (diff)
downloadglibc-a19fe332c1be896a4b834b26f8f2ed4813f180f2.zip
glibc-a19fe332c1be896a4b834b26f8f2ed4813f180f2.tar.gz
glibc-a19fe332c1be896a4b834b26f8f2ed4813f180f2.tar.bz2
Update.
* malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to disable all checking.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 16574e1..3adfbc4 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -495,7 +495,8 @@ ptmalloc_init (void)
#endif
if(s) {
if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0'));
- __malloc_check_init();
+ if (check_action != 0)
+ __malloc_check_init();
}
if(__malloc_initialize_hook != NULL)
(*__malloc_initialize_hook)();