aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-12-11 20:10:14 -0600
committerRob Landley <rob@landley.net>2020-12-11 20:10:14 -0600
commit67476b1b3d9462c0fddb4b95c173dc76ea1c933c (patch)
treebb874f9f7925ff210bab4eec18abbf800887f3c2
parent4e47b8e583903752c08a29873ffcb868173c70d8 (diff)
downloadtoybox-67476b1b3d9462c0fddb4b95c173dc76ea1c933c.tar.gz
Sigh, remove debug code checked in by mistake.
-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;