aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-08-17 11:17:27 +0000
committerAnders Broman <a.broman58@gmail.com>2018-08-17 14:35:57 +0000
commit3a99475d0a8b8669a84ce5c7fc70a519a3476d10 (patch)
treedb6368ae1ce8cec47a60d46e44931c0bfc58b799
parent4a92cb070701dba9864decc1abdb886c6a4d728d (diff)
tds: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I8d21c81c86dc63cbc9035fb26372b373191baeb8 Reviewed-on: https://code.wireshark.org/review/29179 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-tds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 536a15e873..369f040053 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -2559,8 +2559,8 @@ dissect_tds_type_varbyte(tvbuff_t *tvb, guint *offset, packet_info *pinfo, proto
/* SYBLONGCHAR would be here, but there is an ambiguity with TDS 7.x.
* It is handled under TDS_DATA_TYPE_BIGCHAR. */
case TDS_DATA_TYPE_LONGBINARY: /* Long Binary (TDS 5.0) */
- length_item = proto_tree_add_item_ret_uint(sub_tree, hf_tds_type_varbyte_length, tvb, *offset, 4,
- tds_get_int4_encoding(tds_info), &length);
+ proto_tree_add_item_ret_uint(sub_tree, hf_tds_type_varbyte_length, tvb, *offset, 4,
+ tds_get_int4_encoding(tds_info), &length);
*offset += 4;
switch(data_type) {
case TDS_DATA_TYPE_LONGBINARY: /* Long Binary (TDS 5.0) */