diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-03-21 03:19:31 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-03-21 03:19:31 +0000 |
commit | 6c1875f2ea58312f180664f4b353faafc7cf7c90 (patch) | |
tree | 650f32e58f8195c7d4e54057e8bcefd635d868b7 /epan | |
parent | 56b75184bbc57c5517bd89484a8959a4c7bd2937 (diff) |
Fix Coverity CID's 1452-1453: UNUSED_VALUE.
svn path=/trunk/; revision=41704
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-hartip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-hartip.c b/epan/dissectors/packet-hartip.c index af8e5f9e47..de8c79e0a5 100644 --- a/epan/dissectors/packet-hartip.c +++ b/epan/dissectors/packet-hartip.c @@ -946,7 +946,7 @@ dissect_hartip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ti = proto_tree_add_uint(hdr_tree, hf_hartip_hdr_message_id, tvb, offset++, 1, hdr.message_id); proto_item_set_text(ti, "Message ID: %s", msg_id_str); - ti = proto_tree_add_uint(hdr_tree, hf_hartip_hdr_status, tvb, offset++, 1, + proto_tree_add_uint(hdr_tree, hf_hartip_hdr_status, tvb, offset++, 1, hdr.status); proto_tree_add_uint(hdr_tree, hf_hartip_hdr_transaction_id, tvb, offset, 2, @@ -958,7 +958,7 @@ dissect_hartip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* add body elements. */ if (bodylen < 0) { - body_node = proto_tree_add_text(hartip_tree, tvb, offset, hdr.length - HARTIP_HEADER_LENGTH, + proto_tree_add_text(hartip_tree, tvb, offset, hdr.length - HARTIP_HEADER_LENGTH, "HART_IP Body - Invalid size"); return; } else { |