From 6ed5da8f484ccafb6e1b131514d8c01efc5affbc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Dec 2002 07:37:17 +0000 Subject: Update. * malloc/malloc.c (mALLOPt): Make sure malloc is initialized. --- malloc/malloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'malloc') 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; -- cgit v1.2.3-70-g09d2