Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Dec 2002 07:37:17 +0000 (07:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Dec 2002 07:37:17 +0000 (07:37 +0000)
* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.

ChangeLog
malloc/malloc.c

index b0fedde..f9f268f 100644 (file)
--- 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.
index 36a244d..da834d2 100644 (file)
@@ -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;