aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-07-25 17:16:02 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-07-25 17:16:02 +0000
commitd363af82bf6da8a39907c270426f8b6bc0f5660f (patch)
treecbd8bcc524de7850c33db9de8ca2f9ef6e7ebb44 /plugins
parent85e09ecdd5902e8efe7d50a8de0d2685ac015f34 (diff)
Initialize a couple of variables to prevent a couple (false, I think) "could be used uninitialized" warnings from GCC
svn path=/trunk/; revision=22401
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wimax/mac_hd_generic_decoder.c6
1 files changed, 4 insertions, 2 deletions
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;