diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-11-11 15:38:01 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-11 15:44:56 +0000 |
commit | 92be91f57a162136523f40b6f9eefddacf7a3328 (patch) | |
tree | e0f14f4a08dc76e8ce91863ced2e082f1e5d4d5f /epan | |
parent | 1cf6d365b2e4c0e97411698ba027d62de4437523 (diff) |
[o|t]wamp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Idfa33bb194a491e2b97cc7e4a95f4da8c30a5f58
Reviewed-on: https://code.wireshark.org/review/24349
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-twamp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-twamp.c b/epan/dissectors/packet-twamp.c index 8f4abce0e1..fc280523e4 100644 --- a/epan/dissectors/packet-twamp.c +++ b/epan/dissectors/packet-twamp.c @@ -528,7 +528,7 @@ dissect_owamp_test(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da offset += padding; } - return tvb_reported_length(tvb); + return offset; } static int @@ -590,7 +590,7 @@ dissect_twamp_test(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da } /* Return the total length */ - return tvb_reported_length(tvb); + return offset; } void proto_register_twamp(void) |