Fix Coverity CID 1242: Pointer "ti" returned by proto_tree_add_uint64() is never...
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 8 Aug 2011 20:16:45 +0000 (20:16 +0000)
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 8 Aug 2011 20:16:45 +0000 (20:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38418 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-xtp.c

index ddd804868d4ae74275e77fb8b0644d82294a0d41..916a8d626c26e1f77c5d2cf61c487122fe954fe3 100644 (file)
@@ -1002,7 +1002,7 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
                xtp_tree = proto_item_add_subtree(ti, ett_xtp);
                /* key(8) */
                offset = 0;
-               ti = proto_tree_add_uint64(xtp_tree, hf_xtp_key,
+               proto_tree_add_uint64(xtp_tree, hf_xtp_key,
                                        tvb, offset, 8, xtph->key);
                offset += 8;
                /* cmd(4) */