From db87e622980dc511422f2eed96e5e8d56747b99e Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 18 Aug 2015 16:29:19 +0200 Subject: pcap: add init value. Found compiling with gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04). Change-Id: I21bd3a5ab3365f0065c919aba7d6bd00b878d041 Reviewed-on: https://code.wireshark.org/review/10105 Petri-Dish: Hadriel Kaplan Reviewed-by: Michal Labedzki --- epan/dissectors/file-pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/file-pcap.c') diff --git a/epan/dissectors/file-pcap.c b/epan/dissectors/file-pcap.c index 0d229721aa..b70a686086 100644 --- a/epan/dissectors/file-pcap.c +++ b/epan/dissectors/file-pcap.c @@ -196,7 +196,7 @@ dissect_pcap_pseudoheader(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v { gint offset = 0; guint32 *link_type; - guint32 length; + guint32 length = 0; tvbuff_t *next_tvb; proto_item *pseudoheader_item; proto_tree *pseudoheader_tree = NULL; -- cgit v1.2.3