aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 19600fcc..92ec89fa 100644
--- a/main.c
+++ b/main.c
@@ -132,6 +132,7 @@ void toybox_main(void)
toys.which = toy_list;
if (toys.argv[1]) {
+ toys.optc = 0;
toy_exec(toys.argv+1);
if (toys.argv[1][0] == '-') goto list;