aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mswsp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-09-21 06:05:34 +0000
committerAnders Broman <a.broman58@gmail.com>2018-09-23 20:56:46 +0000
commitd6e962345ac0d3a2b2f314fc8f69607d27518ee8 (patch)
tree362d1d526e33fe75c0c6939d9af8977be38a8989 /epan/dissectors/packet-mswsp.c
parenta76d4da8bf1456156394e5660bf37e5fcd75238c (diff)
mswsp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Id521ecbdbaa1818b6480d9fcd4257104dc3699bb Reviewed-on: https://code.wireshark.org/review/29774 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mswsp.c')
-rw-r--r--epan/dissectors/packet-mswsp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mswsp.c b/epan/dissectors/packet-mswsp.c
index 295192a0ab..c027c91ee1 100644
--- a/epan/dissectors/packet-mswsp.c
+++ b/epan/dissectors/packet-mswsp.c
@@ -4233,7 +4233,6 @@ static int parse_CBaseStorageVariant(tvbuff_t *tvb, packet_info *pinfo, int offs
* Not a valid type.
*/
ti_type = proto_tree_add_string(tree, hf_mswsp_cbasestorvariant_vtype, tvb, offset, 2, "Unknown CBaseStorageVariant type");
- offset += 2;
expert_add_info(pinfo, ti_type, &ei_mswsp_invalid_variant_type);
THROW_MESSAGE(ReportedBoundsError, "Unknown CBaseStorageVariant type");
@@ -5275,7 +5274,6 @@ static int parse_VariantCol(tvbuff_t *tvb, packet_info *pinfo, int offset, proto
*/
ti_type = proto_tree_add_string(tree, hf_mswsp_ctablecolumn_vtype, tvb, offset, 4, "Unknown variant column type");
expert_add_info(pinfo, ti_type, &ei_mswsp_invalid_variant_type);
- offset += 2;
THROW_FORMATTED(ReportedBoundsError, "Unknown variant column type%s", modifier);
return offset;