Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ipfw/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ ipfw_main(int oldac, char **oldav)
/* Save arguments for final freeing of memory. */
save_av = av;

optind = optreset = 1; /* restart getopt() */
/* restart getopt() */
optreset = 1;
optind = 0;
while ((ch = getopt(ac, av, "abcdefhinNp:qs:STtv")) != -1)
switch (ch) {
case 'a':
Expand Down