diff --git a/userspace/libraries/LibC/unistd.cpp b/userspace/libraries/LibC/unistd.cpp index 5553373145..f12f533275 100644 --- a/userspace/libraries/LibC/unistd.cpp +++ b/userspace/libraries/LibC/unistd.cpp @@ -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();