]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 b0fedde2c4f657875c377f6c39fe011d3f00476e..f9f268f02c58e19e40adb0cd2722f84976a10ef0 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 36a244dad7d69f9489d6d1703ddebd481dbb3f6d..da834d2663c80b4739aa6035db6b55a527f708f2 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;