aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mqtt.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-11-11 15:37:01 +0100
committerAnders Broman <a.broman58@gmail.com>2017-11-11 15:44:42 +0000
commit1cf6d365b2e4c0e97411698ba027d62de4437523 (patch)
treef410a2363aa6e3cc3ae61a35763830cc28a39c17 /epan/dissectors/packet-mqtt.c
parentfdc8845803d15bc55fe8673bec22290f77cceed1 (diff)
mqtt: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ibd0041e0031c92073c89a1535677167e4fc90443 Reviewed-on: https://code.wireshark.org/review/24348 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mqtt.c')
-rw-r--r--epan/dissectors/packet-mqtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mqtt.c b/epan/dissectors/packet-mqtt.c
index e87d4b62e5..800cbccc33 100644
--- a/epan/dissectors/packet-mqtt.c
+++ b/epan/dissectors/packet-mqtt.c
@@ -968,7 +968,7 @@ static int dissect_mqtt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
break;
}
- return tvb_captured_length(tvb);
+ return offset;
}
/**