1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00
* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
This commit is contained in:
Ulrich Drepper
2002-12-18 07:37:17 +00:00
parent ff4056c02c
commit 6ed5da8f48
2 changed files with 4 additions and 0 deletions

View File

@@ -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;