diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-10 17:51:32 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-10 17:51:32 +0000 |
commit | 515612450e3094b6ec245244ecefc40c14c76320 (patch) | |
tree | 1114c2f80eeb227b707dc8378f0dfb756d0554cf /epan/dissectors/packet-gmr1_dtap.c | |
parent | b60c4783267bf24caa6b3a95d4bc9d6652a3524e (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41472
Diffstat (limited to 'epan/dissectors/packet-gmr1_dtap.c')
-rw-r--r-- | epan/dissectors/packet-gmr1_dtap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gmr1_dtap.c b/epan/dissectors/packet-gmr1_dtap.c index 88b4445f55..05b9bbc62b 100644 --- a/epan/dissectors/packet-gmr1_dtap.c +++ b/epan/dissectors/packet-gmr1_dtap.c @@ -130,7 +130,7 @@ dissect_gmr1_dtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Message type - [1] 11.4 */ proto_tree_add_uint_format( - dtap_tree, hf_idx, tvb, offset, 1, oct[1], + pd_tree, hf_idx, tvb, offset, 1, oct[1], "Message Type: %s", msg_str ? msg_str : "(Unknown)" ); @@ -138,9 +138,9 @@ dissect_gmr1_dtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Decode elements */ if (msg_func) { - (*msg_func)(tvb, dtap_tree, pinfo, offset, len - offset); + (*msg_func)(tvb, pd_tree, pinfo, offset, len - offset); } else { - proto_tree_add_text(dtap_tree, tvb, offset, len - offset, + proto_tree_add_text(pd_tree, tvb, offset, len - offset, "Message Elements"); } |