docsis: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 10 Sep 2018 16:19:26 +0000 (16:19 +0000)
committerAnders Broman <a.broman58@gmail.com>
Tue, 11 Sep 2018 04:09:00 +0000 (04:09 +0000)
Change-Id: I2d7e2d2c83dddc666c7ef85727af986b65b12a13
Reviewed-on: https://code.wireshark.org/review/29567
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Andrii Vladyka <a.vladyka@ukr.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-docsis.c

index baf9635c34742ee9a749a5e654aa8fceabe2b3e7..3745c30ee7071604ff46552a9092b8c74317b23f 100644 (file)
@@ -560,6 +560,7 @@ dissect_encrypted_frame (tvbuff_t * tvb, proto_tree * tree, const guint8 fctype)
       addr_tree = proto_item_add_subtree(addr_item, ett_addr);
       addr_item=proto_tree_add_string(addr_tree, hf_docsis_dst_resolved, tvb, 0, 6,
           dst_addr_name);
+      PROTO_ITEM_SET_GENERATED(addr_item);
       proto_tree_add_item(addr_tree, hf_docsis_lg, tvb, 0, 3, ENC_BIG_ENDIAN);
       proto_tree_add_item(addr_tree, hf_docsis_ig, tvb, 0, 3, ENC_BIG_ENDIAN);
 
@@ -567,6 +568,7 @@ dissect_encrypted_frame (tvbuff_t * tvb, proto_tree * tree, const guint8 fctype)
       addr_tree = proto_item_add_subtree(addr_item, ett_addr);
       addr_item=proto_tree_add_string(addr_tree, hf_docsis_src_resolved, tvb, 6, 6,
           src_addr_name);
+      PROTO_ITEM_SET_GENERATED(addr_item);
       proto_tree_add_item(addr_tree, hf_docsis_lg, tvb, 6, 3, ENC_BIG_ENDIAN);
       proto_tree_add_item(addr_tree, hf_docsis_ig, tvb, 6, 3, ENC_BIG_ENDIAN);