aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index 430e7f95..a1817347 100644
--- a/main.c
+++ b/main.c
@@ -213,12 +213,11 @@ void toybox_main(void)
xputc('\n');
}
-#include <malloc.h>
int main(int argc, char *argv[])
{
// don't segfault if our environment is crazy
if (!*argv) return 127;
-mallopt(M_CHECK_ACTION, 1);
+
// Snapshot stack location so we can detect recursion depth later.
// Nommu has special reentry path, !stacktop = "vfork/exec self happened"
if (!CFG_TOYBOX_FORK && (0x80 & **argv)) **argv &= 0x7f;