about summary refs log tree commit diff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-01 07:38:32 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-01 07:38:32 +0000
commita234e27dba9abdce3ba999479b024a4c7843422b (patch)
treeff027d48a9b1c2e45ff108d10b7a10dab38e7260 /malloc/malloc.c
parent69278ade4a833e7e0b9e53bbba02f7d12edd03dd (diff)
downloadglibc-a234e27dba9abdce3ba999479b024a4c7843422b.tar.gz
glibc-a234e27dba9abdce3ba999479b024a4c7843422b.tar.xz
glibc-a234e27dba9abdce3ba999479b024a4c7843422b.zip
Update.
2003-05-01  Ulrich Drepper  <drepper@redhat.com>

	* malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.

2003-04-29  Andreas Schwab  <schwab@suse.de>

	* string/test-strcat.c (do_one_test): Fix attribute name.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 0586a0cb7f..8b862feb5b 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5090,6 +5090,8 @@ void mSTATs()
   long stat_lock_direct = 0, stat_lock_loop = 0, stat_lock_wait = 0;
 #endif
 
+  if(__malloc_initialized < 0)
+    ptmalloc_init ();
   for (i=0, ar_ptr = &main_arena;; i++) {
     (void)mutex_lock(&ar_ptr->mutex);
     mi = mALLINFo(ar_ptr);