aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-catapult-dct2000.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2022-05-10 20:16:21 +0000
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-05-22 08:40:44 +0000
commit406f5263c3caa13fd6d1e2ce7d7f9f51628c168e (patch)
tree7aaa9ec7bf1250bc6570dab4d4ddc6cd57c66f3c /epan/dissectors/packet-catapult-dct2000.c
parent8ee1eabeee49726c313421d5bedaa49a2582f452 (diff)
catapult-dct200: fix clang analyer warning (Dead.Store)
packet-catapult-dct2000.c:1099:13: warning: Value stored to 'tag' is never read [deadcode.DeadStores] packet-catapult-dct2000.c:1100:13: warning: Value stored to 'len' is never read [deadcode.DeadStores] packet-catapult-dct2000.c:3076:21: warning: Value stored to 'sub_dissector_result' is never read [deadcode.DeadStores]
Diffstat (limited to 'epan/dissectors/packet-catapult-dct2000.c')
-rw-r--r--epan/dissectors/packet-catapult-dct2000.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-catapult-dct2000.c b/epan/dissectors/packet-catapult-dct2000.c
index 2b9c371235..4006623e07 100644
--- a/epan/dissectors/packet-catapult-dct2000.c
+++ b/epan/dissectors/packet-catapult-dct2000.c
@@ -1096,8 +1096,8 @@ static void dissect_rrc_lte_nr(tvbuff_t *tvb, gint offset,
tvb, offset++, 1, ENC_BIG_ENDIAN, &downlink_sec_mode);
if (len > 2) {
- tag = tvb_get_guint8(tvb, offset++); /* Should be 0x21 */
- len = tvb_get_guint8(tvb, offset++);
+ offset++; /* tag Should be 0x21 */
+ offset++; /* len */
tag = tvb_get_guint8(tvb, offset++);
if (tag == 0x25) {
@@ -3073,7 +3073,7 @@ dissect_catapult_dct2000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
0, tvb_reported_length(raw_traffic_tvb), ENC_NA);
/* Call the dissector! */
- sub_dissector_result = call_dissector_only(eth_handle, raw_traffic_tvb, pinfo, tree, NULL);
+ call_dissector_only(eth_handle, raw_traffic_tvb, pinfo, tree, NULL);
}
return tvb_captured_length(tvb);