summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-07-08 11:51:47 +0200
committerAnders Broman <a.broman58@gmail.com>2014-07-08 10:38:28 +0000
commit4e478aac671e7efd830deac352e473b4229cfb60 (patch)
tree76186a0b31d82b2dcaf7d1629f8bb54c60231737
parent033249ec6248c5fd53cc0f7e6b97cde34367b53a (diff)
downloadwireshark-4e478aac671e7efd830deac352e473b4229cfb60.tar.gz
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I369c4620f47f92bf66722fa79582502c0897a316 Reviewed-on: https://code.wireshark.org/review/2935 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-v52.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-v52.c b/epan/dissectors/packet-v52.c
index df854f1398..2d85f9101f 100644
--- a/epan/dissectors/packet-v52.c
+++ b/epan/dissectors/packet-v52.c
@@ -1346,10 +1346,10 @@ dissect_sequence_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
col_append_str(pinfo->cinfo, COL_INFO, " | ");
col_append_str(pinfo->cinfo, COL_INFO, val_to_str_const(tvb_get_guint8(info_tvb, info_offset), info_element_values_short, "Unknown element"));
+ hf_v52_sequence_number_tmp = tvb_get_guint8(info_tvb, info_offset+2)-0x80;
col_append_fstr(pinfo->cinfo, COL_INFO, ": %u", hf_v52_sequence_number_tmp);
if (info_tree != NULL) {
- hf_v52_sequence_number_tmp = tvb_get_guint8(info_tvb, info_offset+2)-0x80;
proto_tree_add_item(info_tree, hf_v52_info_element, info_tvb, info_offset, info_element_length, ENC_BIG_ENDIAN);
proto_tree_add_item(info_tree, hf_v52_info_length, info_tvb, info_offset+1, info_element_length, ENC_BIG_ENDIAN);
proto_item_append_text(ti_info, " %s (0x%x)",val_to_str_const(info_element, info_element_values, "unknown info element"),info_element);