aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index ed6706a9..eefebf9e 100644
--- a/main.c
+++ b/main.c
@@ -149,7 +149,7 @@ void toybox_main(void)
toys.which = toy_list;
if (toys.argv[1]) {
- toys.optc = 0;
+ toys.optc = toys.recursion = 0;
toy_exec(toys.argv+1);
if (toys.argv[1][0] == '-') goto list;