From: Victor Julien Date: Fri, 4 Sep 2020 08:46:59 +0000 (+0200) Subject: commandline: add static analyzer hint for -r parsing X-Git-Tag: suricata-6.0.0-rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac2b9dbb93798c74c828281e3dd7ffd769b5b08;p=thirdparty%2Fsuricata.git commandline: add static analyzer hint for -r parsing --- diff --git a/src/suricata.c b/src/suricata.c index 35fafaddd3..108c4307db 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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 {