mongo: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: I60ee2a37ff166b80ce11cf1c12e9c575bba85529
Reviewed-on: https://code.wireshark.org/review/24722
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Derick Rethans <github@derickrethans.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2017-12-07 09:28:39 +00:00 committed by Anders Broman
parent 244aab31ee
commit 024e7dc8af
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ dissect_op_msg_section(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto_tr
to_read -= 4;
dsi_length = tvb_strsize(tvb, offset);
ti = proto_tree_add_item(section_tree, hf_mongo_msg_sections_section_doc_sequence_id, tvb, offset, dsi_length, ENC_ASCII|ENC_NA);
proto_tree_add_item(section_tree, hf_mongo_msg_sections_section_doc_sequence_id, tvb, offset, dsi_length, ENC_ASCII|ENC_NA);
offset += dsi_length;
to_read -= dsi_length;