diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-02 23:13:02 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-02 23:13:02 +0000 |
commit | 4e02b8dc0e7cc1fb9600bb639756fba55366c428 (patch) | |
tree | 36fd97bcbfe1f7f50a0187795041d915dd9313c9 /epan/dissectors/packet-mgcp.c | |
parent | 890d656bca6a039cb58792daf0a174de5f354c16 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=51667
Diffstat (limited to 'epan/dissectors/packet-mgcp.c')
-rw-r--r-- | epan/dissectors/packet-mgcp.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/epan/dissectors/packet-mgcp.c b/epan/dissectors/packet-mgcp.c index c01e6d1d32..e5ac537250 100644 --- a/epan/dissectors/packet-mgcp.c +++ b/epan/dissectors/packet-mgcp.c @@ -341,7 +341,6 @@ static int dissect_mgcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi /* Initialize variables */ tvb_sectionend = 0; tvb_sectionbegin = tvb_sectionend; - sectionlen = 0; tvb_len = tvb_length(tvb); num_messages = 0; mgcp_tree = NULL; @@ -497,9 +496,6 @@ static void dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree * mi->hasDigitMap = FALSE; /* Initialize variables */ - tvb_sectionend = 0; - tvb_sectionbegin = tvb_sectionend; - sectionlen = 0; tvb_len = tvb_length(tvb); /* @@ -530,7 +526,6 @@ static void dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree * { dissect_mgcp_params(tvb_new_subset(tvb, tvb_sectionbegin, sectionlen, -1), mgcp_tree); - tvb_sectionbegin = tvb_sectionend; } } @@ -1409,7 +1404,6 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo, proto_tree static address null_address = { AT_NONE, -1, 0, NULL }; tvb_previous_offset = 0; tvb_len = tvb_length(tvb); - tvb_current_len = tvb_len; tvb_current_offset = tvb_previous_offset; mi->is_duplicate = FALSE; mi->request_available = FALSE; @@ -2205,7 +2199,6 @@ static gint tvb_find_dot_line(tvbuff_t* tvb, gint offset, gint len, gint* next_o { gint tvb_current_offset, tvb_current_len, maxoffset,tvb_len; guint8 tempchar; - tvb_current_offset = offset; tvb_current_len = len; tvb_len = tvb_length(tvb); |