From bf28bd4da3c163234dbdccf492601853b697073d Mon Sep 17 00:00:00 2001 From: AndersBroman Date: Thu, 2 Mar 2017 14:01:21 +0100 Subject: [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 --- epan/dissectors/packet-snort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan') 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; -- cgit v1.2.3