(public_mTRIm): nitialize malloc if not yet initialized.
authordrepper <drepper>
Sat, 19 Mar 2005 00:19:02 +0000 (00:19 +0000)
committerdrepper <drepper>
Sat, 19 Mar 2005 00:19:02 +0000 (00:19 +0000)
malloc/malloc.c

index b91f11b..e7fc00a 100644 (file)
@@ -3774,6 +3774,8 @@ public_mTRIm(size_t s)
 {
   int result;
 
+  if(__malloc_initialized < 0)
+    ptmalloc_init ();
   (void)mutex_lock(&main_arena.mutex);
   result = mTRIm(s);
   (void)mutex_unlock(&main_arena.mutex);