diff --git a/main/asterisk.c b/main/asterisk.c index 0442614a40..568feb0b6b 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3995,7 +3995,7 @@ int main(int argc, char *argv[]) * * \todo Document these options */ - optind = 0; + optind = 1; while ((c = getopt(argc, argv, getopt_settings)) != -1) { /*!\note Please keep the ordering here to alphabetical, capital letters * first. This will make it easier in the future to select unused