snort: fix dead Store found by Clang Analyzer

packet-snort.c:515:15: warning: Although the value stored to 'line' is used in the enclosing expression, the value is never actually read from 'line'
This commit is contained in:
Alexis La Goutte 2021-02-09 21:28:04 +00:00 committed by Wireshark GitLab Utility
parent 3cf55c314e
commit a4bcc8bd13
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ static gboolean snort_parse_fast_line(const char *line, Alert_t *alert)
return FALSE;
}
if (!(line = strstr(line, "] "))) {
if (!strstr(line, "] ")) {
return FALSE;
}
} else {