about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c2
1 files changed, 2 insertions, 0 deletions
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;