aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2017-03-02 14:01:21 +0100
committerAnders Broman <a.broman58@gmail.com>2017-03-02 14:30:40 +0000
commitbf28bd4da3c163234dbdccf492601853b697073d (patch)
treee519f59eee4e78a0e7f583d18f7d50b572c4d1ea /epan
parent4fdc16d8e4e2bf527fe75d6143d09e3238553170 (diff)
[packet snort] Fix build on SuSE 11.4
packet-snort.c: In function snort_dissector: packet-snort.c:882: error: converted_content_length may be used uninitialized in this function packet-snort.c:882: note: converted_content_length was declared here packet-snort.c:880: error: content_offset may be used uninitialized in this function packet-snort.c:880: note: content_offset was declared here Change-Id: I8fb990492f31fc4ce942244005f547f3b3c9bba3 Reviewed-on: https://code.wireshark.org/review/20335 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-snort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-snort.c b/epan/dissectors/packet-snort.c
index 991895c6cb..9dfef27a5a 100644
--- a/epan/dissectors/packet-snort.c
+++ b/epan/dissectors/packet-snort.c
@@ -877,9 +877,9 @@ static void snort_show_alert(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo
for (n=0; n < rule->number_contents; n++) {
/* Search for string among tvb contents so we can highlight likely bytes. */
- unsigned int content_offset;
+ unsigned int content_offset = 0;
gboolean match_found = FALSE;
- unsigned int converted_content_length;
+ unsigned int converted_content_length = 0;
int content_hf_item;
char *content_text_template;
gboolean attempt_match;