From 7d8d209c9f4b45f231022d4d7226042399433465 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 9 Feb 2021 21:33:18 +0000 Subject: [PATCH] wccp: fix Dead Store found by Clang Analyzer packet-wccp.c:2423:11: warning: Although the value stored to 'length_remaining' is used in the enclosing expression, the value is never actually read from 'length_remaining' --- epan/dissectors/packet-wccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-wccp.c b/epan/dissectors/packet-wccp.c index 863036dbad..c1b2052b4a 100644 --- a/epan/dissectors/packet-wccp.c +++ b/epan/dissectors/packet-wccp.c @@ -2420,7 +2420,7 @@ dissect_wccp2_info(tvbuff_t *tvb, int offset, */ find_wccp_address_table(tvb,offset,pinfo,wccp_tree, &wccp_wccp_address_table); - while ((length_remaining = tvb_reported_length_remaining(tvb, offset)) > 0) { + while (tvb_reported_length_remaining(tvb, offset) > 0) { type = tvb_get_ntohs(tvb, offset); switch (type) {