Skip to content

Commit

Permalink
commandline: add static analyzer hint for -r parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Sep 4, 2020
1 parent 71297f5 commit aac2b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/suricata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,7 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
#endif /* IPFW */
break;
case 'r':
BUG_ON(optarg == NULL); /* for static analysis */
if (suri->run_mode == RUNMODE_UNKNOWN) {
suri->run_mode = RUNMODE_PCAP_FILE;
} else {
Expand Down

0 comments on commit aac2b9d

Please sign in to comment.