aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-09 15:35:42 -0600
committerRob Landley <rob@landley.net>2007-12-09 15:35:42 -0600
commitaaffc07346c5e95f5c2db2ba6b2bde9898ea4498 (patch)
tree992b261e82f8f9a8effc05e0eb4fe9fb7ebcbde2 /main.c
parentea6387aed235fd75c836138b4e0133918ee86820 (diff)
downloadtoybox-aaffc07346c5e95f5c2db2ba6b2bde9898ea4498.tar.gz
Changeset 186 assumed that toys.exitval defaults to 0. Actually change the
default and have [p]error_exit() always return nonzero anyway.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4b58d8c2..1adaead3 100644
--- a/main.c
+++ b/main.c
@@ -68,7 +68,6 @@ void toy_init(struct toy_list *which, char *argv[])
toys.which = which;
toys.argv = argv;
- toys.exitval = 1;
if (NEED_OPTIONS && which->options) get_optflags();
else toys.optargs = argv+1;
}