aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-24 17:26:23 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-24 17:26:23 +0000
commitceba6be798d7fa02e73549d7178ca81dd0900291 (patch)
treebf73d1a0b0afc90f5a8a11153518335accd8ca24 /malloc
parentcf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f (diff)
downloadglibc-ceba6be798d7fa02e73549d7178ca81dd0900291.zip
glibc-ceba6be798d7fa02e73549d7178ca81dd0900291.tar.gz
glibc-ceba6be798d7fa02e73549d7178ca81dd0900291.tar.bz2
* malloc/arena.c (ptmalloc_init): Don't call __malloc_check_initcvs/fedora-glibc-20060424T2027
if MALLOC_CHECK_ env var contains an empty string.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/arena.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 4d95462..6f0a9df 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -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();
}