From 9d91ebd616dee6ab9606fa1dc7a8eecc7750b03f Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 9 Feb 2021 21:32:22 +0000 Subject: [PATCH] VNC: Fix dead store found by Clang acket-vnc.c:1550:3: warning: Value stored to 'offset' is never read [deadcode.DeadStores] --- epan/dissectors/packet-vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c index 350662c66e..4033ae75d7 100644 --- a/epan/dissectors/packet-vnc.c +++ b/epan/dissectors/packet-vnc.c @@ -1547,7 +1547,7 @@ vnc_startup_messages(tvbuff_t *tvb, packet_info *pinfo, gint offset, val_to_str_const(authtype, vnc_vencrypt_auth_types_vs, "Unknown"), authtype); proto_tree_add_item(tree, hf_vnc_vencrypt_auth_type, tvb, offset, 4, ENC_BIG_ENDIAN); - offset+=4; + /* offset+=4; */ if (authtype == VNC_SECURITY_TYPE_NONE) { per_conversation_info->vnc_next_state = VNC_SESSION_STATE_CLIENT_INIT; per_conversation_info->security_type_selected = VNC_SECURITY_TYPE_NONE;