diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-06-01 07:54:00 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-06-01 07:35:02 +0000 |
commit | 2be00427816587946200001b6cd08b42a69db482 (patch) | |
tree | a698163ce9898633ac3571adb524aed762e9935c /epan/dissectors/packet-websocket.c | |
parent | effa6fc214ce0e2f4bc081bb6ff6cf3b608060e5 (diff) |
Websocket: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ica45c5d316d04df977449a12f824c76642d6c4bd
Reviewed-on: https://code.wireshark.org/review/8722
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-websocket.c')
-rw-r--r-- | epan/dissectors/packet-websocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-websocket.c b/epan/dissectors/packet-websocket.c index 5ff78a71d2..a96dd17ce7 100644 --- a/epan/dissectors/packet-websocket.c +++ b/epan/dissectors/packet-websocket.c @@ -352,7 +352,7 @@ dissect_websocket_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi if (payload_length > 0) { /* Always unmask payload data before analysing it. */ if (mask) { - ti = proto_tree_add_item(ws_tree, hf_ws_masked_payload, tvb, payload_offset, payload_length, ENC_NA); + proto_tree_add_item(ws_tree, hf_ws_masked_payload, tvb, payload_offset, payload_length, ENC_NA); tvb_payload = tvb_unmasked(tvb, pinfo, payload_offset, payload_length, masking_key); tvb_set_child_real_data_tvbuff(tvb, tvb_payload); add_new_data_source(pinfo, tvb_payload, "Unmasked data"); |