Don't assign to a proto_item* that is not used before being overwritten.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 Apr 2011 21:40:49 +0000 (21:40 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 Apr 2011 21:40:49 +0000 (21:40 +0000)
Coverity 1017.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36566 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-rdt.c

index c03d3d83274574bed4f2c548eb6ec78c8325df74..de0e3ceba70c2b23b3b79cc36b6b5ecc31725e90 100644 (file)
@@ -560,7 +560,7 @@ guint dissect_rdt_asm_action_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     /* Create subtree for flags fields */
     if (tree)
     {
-        ti = proto_tree_add_item(tree, proto_rdt, tvb, offset, -1, FALSE);
+        proto_tree_add_item(tree, proto_rdt, tvb, offset, -1, FALSE);
         ti =  proto_tree_add_string_format(tree, hf_rdt_aact_flags, tvb, offset, 1,
                                            "",
                                            "Length-included=%u, stream_id=%u",