aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-08-19 07:18:47 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2019-08-23 06:49:35 +0000
commit6937bb521ec9a81573efa89ed497cab4d6763fcf (patch)
tree52281ade7725174c3f033855a357a77a44a11db0 /epan
parent7519c077d0d27c5e8c87c6df1ab19c3d172df45a (diff)
mpeg(dsmcc): Fix Dead Store
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang Change-Id: Iea244eac276f6e37590b04cfbb53c3d7c802c7ae Reviewed-on: https://code.wireshark.org/review/34320 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anthony Crawford <anthony.r.crawford@charter.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-mpeg-dsmcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mpeg-dsmcc.c b/epan/dissectors/packet-mpeg-dsmcc.c
index 8725cacda8..0a1e0617ed 100644
--- a/epan/dissectors/packet-mpeg-dsmcc.c
+++ b/epan/dissectors/packet-mpeg-dsmcc.c
@@ -1029,7 +1029,7 @@ dissect_dsmcc_adaptation_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
}
offset += 1;
sub_sub_tree = proto_tree_add_subtree(sub_tree, tvb, offset, 20, ett_dsmcc_heading, NULL, "User ID");
- offset += dissect_dsmcc_un_session_nsap(tvb, offset, pinfo, sub_sub_tree);
+ dissect_dsmcc_un_session_nsap(tvb, offset, pinfo, sub_sub_tree);
} else {
sub_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_dsmcc_adaptation_header, NULL, "Unknown Adaptation Header");
proto_tree_add_item(sub_tree, hf_dsmcc_adaptation_type, tvb, offset, 1, ENC_BIG_ENDIAN);
@@ -1387,7 +1387,7 @@ dissect_dsmcc_un_session_resources(
/* Table 4-75 ATM Connection */
case RSRC_ATM_CONN:
rsrc_tree = proto_tree_add_subtree(sub_sub_sub_tree, tvb, offset, 0, ett_dsmcc_heading, NULL, "ATM Address:");
- offset += dissect_dsmcc_un_session_resource_value(tvb, offset, pinfo, sub_sub_sub_tree, 20);
+ offset += dissect_dsmcc_un_session_resource_value(tvb, offset, pinfo, rsrc_tree, 20);
rsrc_tree = proto_tree_add_subtree(sub_sub_sub_tree, tvb, offset, 0, ett_dsmcc_heading, NULL, "ATM VCI:");
offset += dissect_dsmcc_un_session_resource_value(tvb, offset, pinfo, rsrc_tree, 2);
rsrc_tree = proto_tree_add_subtree(sub_sub_sub_tree, tvb, offset, 0, ett_dsmcc_heading, NULL, "ATM VPI:");