bug fix to ensure the --last-cmd re-parsing of command line args via getopt_long() has a reset index

git-svn-id: file:///home/mbr/svn/fwknop/trunk@200 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Michael Rash
2010-01-20 01:18:12 +00:00
parent daca01a2c6
commit b34c506a90
+4
View File
@@ -606,6 +606,10 @@ run_last_args(fko_cli_options_t *options)
}
fclose(args_file_ptr);
/* Reset the options index so we can run through them again.
*/
optind = 0;
config_init(options, argc_new, argv_new);
}