Fix Dead Store (Dead assignement/Dead increment) warning found by Clang

Change-Id: I4a2ba6902acc0cbd224a8926eeb7bd0b62b4d29e
Reviewed-on: https://code.wireshark.org/review/3825
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-08-07 14:38:31 +02:00 committed by Evan Huus
parent d3c649b482
commit 3eb37627c1
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ static int dissect_mqtt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
{
mqtt_str_len = tvb_get_ntohs(tvb, offset);
offset += 2;
mqtt_msg_len -= 2;
/*mqtt_msg_len -= 2;*/
proto_tree_add_item(mqtt_msg_tree, hf_mqtt_passwd, tvb, offset, mqtt_str_len, ENC_UTF_8|ENC_NA);
/* offset += mqtt_str_len; */