aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-opa-mad.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2021-02-06 15:08:50 +0000
committerAndersBroman <a.broman58@gmail.com>2021-02-07 07:32:00 +0000
commit572774123f4dacbb3876c2842c4709ed8cd6f95d (patch)
treece550fc2721ce364593211cab1767333d2cde1d9 /epan/dissectors/packet-opa-mad.c
parentf6508c33c8f3ab92e3984dc33039d8150e7d623f (diff)
opa-mad: Fix Dead Store Found by Clang Analyzer
packet-opa-mad.c:2816:12: warning: Although the value stored to 'local_offset' is used in the enclosing expression, the value is never actually read from 'local_offset'
Diffstat (limited to 'epan/dissectors/packet-opa-mad.c')
-rw-r--r--epan/dissectors/packet-opa-mad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-opa-mad.c b/epan/dissectors/packet-opa-mad.c
index 29242fdf02..bb4c4b6b53 100644
--- a/epan/dissectors/packet-opa-mad.c
+++ b/epan/dissectors/packet-opa-mad.c
@@ -2813,7 +2813,8 @@ static gint parse_MAD_AttributeModifier(proto_tree *MAD_tree, tvbuff_t *tvb, gin
default:
break;
}
- return local_offset += 4;
+ local_offset += 4;
+ return local_offset;
}
/* Parse the common MAD Header */
static gboolean parse_MAD_Common(proto_tree *parentTree, packet_info *pinfo, tvbuff_t *tvb, gint *offset, MAD_t *MAD)