mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2002-12-17 Ulrich Drepper <drepper@redhat.com>
|
2002-12-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
|
||||||
|
|
||||||
* elf/elf.h (AT_SYSINFO): New define.
|
* elf/elf.h (AT_SYSINFO): New define.
|
||||||
* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
|
* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
|
||||||
AT_SYSINFO.
|
AT_SYSINFO.
|
||||||
|
@@ -5146,6 +5146,8 @@ int mALLOPt(int param_number, int value)
|
|||||||
int mALLOPt(param_number, value) int param_number; int value;
|
int mALLOPt(param_number, value) int param_number; int value;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
if(__malloc_initialized < 0)
|
||||||
|
ptmalloc_init ();
|
||||||
mstate av = &main_arena;
|
mstate av = &main_arena;
|
||||||
int res = 1;
|
int res = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user