aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-18 23:52:51 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-18 23:52:51 +0000
commit6a00759b0ccfbde390331ac4908be92deeb4237b (patch)
tree5213835be17190b1cdd39053456a99eb551bac4a /malloc
parentca343e73586cd05cb39e8fa884637d804558bf4c (diff)
downloadglibc-6a00759b0ccfbde390331ac4908be92deeb4237b.tar
glibc-6a00759b0ccfbde390331ac4908be92deeb4237b.tar.gz
glibc-6a00759b0ccfbde390331ac4908be92deeb4237b.tar.bz2
glibc-6a00759b0ccfbde390331ac4908be92deeb4237b.zip
Update.
* malloc/malloc.c (public_mALLINFo): Initialize malloc if it hasn't happened yet. Fix completely broken implementation. The second parameter is of
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 8b862feb5b..5cc3473ae2 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3708,6 +3708,8 @@ struct mallinfo public_mALLINFo()
{
struct mallinfo m;
+ if(__malloc_initialized < 0)
+ ptmalloc_init ();
(void)mutex_lock(&main_arena.mutex);
m = mALLINFo(&main_arena);
(void)mutex_unlock(&main_arena.mutex);