From d363af82bf6da8a39907c270426f8b6bc0f5660f Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Wed, 25 Jul 2007 17:16:02 +0000 Subject: Initialize a couple of variables to prevent a couple (false, I think) "could be used uninitialized" warnings from GCC svn path=/trunk/; revision=22401 --- plugins/wimax/mac_hd_generic_decoder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/wimax/mac_hd_generic_decoder.c b/plugins/wimax/mac_hd_generic_decoder.c index acb5c825b0..9a07d438e7 100644 --- a/plugins/wimax/mac_hd_generic_decoder.c +++ b/plugins/wimax/mac_hd_generic_decoder.c @@ -1490,7 +1490,8 @@ void proto_register_mac_header_generic(void) void dissect_mac_header_generic_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint offset = 0; - guint payload_offset, payload_length; + guint payload_offset; + guint payload_length = 0; static guint8 frag_number[MAX_CID]; static guint cid_list[MAX_CID]; @@ -1499,7 +1500,8 @@ void dissect_mac_header_generic_decoder(tvbuff_t *tvb, packet_info *pinfo, proto static char *data_str = "Data transport PDU (%u bytes)"; char *str_ptr; gint length, i, cid_index; - guint tvb_len, ret_length, ubyte, new_tvb_len, new_payload_len; + guint tvb_len, ret_length, ubyte, new_tvb_len; + guint new_payload_len = 0; guint mac_ht, mac_ec, mac_esf, mac_ci, mac_eks, mac_len, mac_cid, cid; guint ffb_grant_mgmt_subheader, packing_subheader, fragment_subheader; guint mesh_subheader; -- cgit v1.2.3