From 9772816570f0a63ac301f1885292b064e23f5310 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 28 Jan 2008 22:57:10 +0000 Subject: *: move getopt reset code to better place(s) --- libbb/appletlib.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libbb/appletlib.c') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 80adff5e7..993618e98 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -638,7 +638,6 @@ void run_applet_no_and_exit(int applet_no, char **argv) argc++; /* Reinit some shared global data */ - optind = 1; xfunc_error_retval = EXIT_FAILURE; applet_name = APPLET_NAME(applet_no); -- cgit v1.2.3