about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-18 07:37:17 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-18 07:37:17 +0000
commit6ed5da8f484ccafb6e1b131514d8c01efc5affbc (patch)
tree2b0f7fea5ecb0305656302a460068b78272cf659
parentff4056c02c4899277a285cb2720531bc64a06c0e (diff)
downloadglibc-6ed5da8f484ccafb6e1b131514d8c01efc5affbc.tar.gz
glibc-6ed5da8f484ccafb6e1b131514d8c01efc5affbc.tar.xz
glibc-6ed5da8f484ccafb6e1b131514d8c01efc5affbc.zip
Update.
	* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
-rw-r--r--ChangeLog2
-rw-r--r--malloc/malloc.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b0fedde2c4..f9f268f02c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
 
+	* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
+
 	* elf/elf.h (AT_SYSINFO): New define.
 	* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
 	AT_SYSINFO.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 36a244dad7..da834d2663 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5146,6 +5146,8 @@ int mALLOPt(int param_number, int value)
 int mALLOPt(param_number, value) int param_number; int value;
 #endif
 {
+  if(__malloc_initialized < 0)
+    ptmalloc_init ();
   mstate av = &main_arena;
   int res = 1;