From 4e478aac671e7efd830deac352e473b4229cfb60 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 8 Jul 2014 11:51:47 +0200 Subject: 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 --- epan/dissectors/packet-v52.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1