commandline: add static analyzer hint for -r parsing

pull/5361/head
Victor Julien 6 years ago
parent 71297f575f
commit aac2b9dbb9

@ -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 {

Loading…
Cancel
Save