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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user