[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>
This commit is contained in:
AndersBroman 2017-03-02 14:01:21 +01:00 committed by Anders Broman
parent 4fdc16d8e4
commit bf28bd4da3
1 changed files with 2 additions and 2 deletions

View File

@ -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;