aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snort.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2021-02-09 21:28:04 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-02-11 21:56:37 +0000
commita4bcc8bd13d3c7ac8b6ab867ea54208772220bc5 (patch)
tree0346882f73849e3bfc19872bad67522007f2e48c /epan/dissectors/packet-snort.c
parent3cf55c314e8713299af762f5e075551d0302c2f6 (diff)
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'
Diffstat (limited to 'epan/dissectors/packet-snort.c')
-rw-r--r--epan/dissectors/packet-snort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-snort.c b/epan/dissectors/packet-snort.c
index 5d9f1efe71..d6df30c2fa 100644
--- a/epan/dissectors/packet-snort.c
+++ b/epan/dissectors/packet-snort.c
@@ -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 {