forked from Bananymous/banan-os
LibC: Initialize libc only once
This was breaking stuff with dynamic loader initializing libc and main executable reinitializing it later :D
This commit is contained in:
parent
39802b56c1
commit
4e9f39384a
|
@ -20,6 +20,11 @@ extern void _init_malloc();
|
|||
extern void _init_stdio();
|
||||
extern "C" void _init_libc(char** _environ)
|
||||
{
|
||||
static bool is_initialized = false;
|
||||
if (is_initialized)
|
||||
return;
|
||||
is_initialized = true;
|
||||
|
||||
_init_malloc();
|
||||
_init_stdio();
|
||||
|
||||
|
|
Loading…
Reference in New Issue