*: move getopt reset code to better place(s)

This commit is contained in:
Denis Vlasenko
2008-01-28 22:57:10 +00:00
parent 73032ca04b
commit 9772816570
4 changed files with 31 additions and 26 deletions

View File

@@ -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);