aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2022-02-08 14:14:12 +0000
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-02-13 10:34:30 +0000
commit26d48b946437f9f2998f8ffc58167dbd3a018f31 (patch)
tree00b60e29d4e75982a075d60f6168fd8f25f3b810
parentc115a2ae60529c6279356122ca60e77f47dd3d20 (diff)
ppp: Fix Dead Store found by Clang Analyzer
packet-ppp.c:4901:13: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
-rw-r--r--epan/dissectors/packet-ppp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ppp.c b/epan/dissectors/packet-ppp.c
index dfb71ca6c1..aa5174b743 100644
--- a/epan/dissectors/packet-ppp.c
+++ b/epan/dissectors/packet-ppp.c
@@ -4898,7 +4898,6 @@ dissect_vsnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
/* dissect 3GPP packet */
proto_tree_add_item(vsnp_tree, hf_vsnp_3gpp_pdnid, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset+=1;
next_tvb = tvb_new_subset_remaining(tvb, 1);
if (!dissector_try_uint(ppp_subdissector_table, PPP_IP, next_tvb, pinfo, tree)) {
col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "0x%04x", PPP_IP);