aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-12-07 09:28:39 +0000
committerAnders Broman <a.broman58@gmail.com>2017-12-07 11:47:34 +0000
commit024e7dc8afb1d84365eeaaeadf029b242eac827f (patch)
tree5db55ab0244809e2c80605b7614e9abd357f7c92
parent244aab31ee83c72aa0cefae650abec40ff1fd753 (diff)
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>
-rw-r--r--epan/dissectors/packet-mongo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mongo.c b/epan/dissectors/packet-mongo.c
index 4ba3837..69f7b8e 100644
--- a/epan/dissectors/packet-mongo.c
+++ b/epan/dissectors/packet-mongo.c
@@ -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;