From 34cc9b2e1af565a151f55a4ca7e53243ee246e3a Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Sun, 26 Nov 2023 16:58:31 +0100 Subject: [PATCH] ipars: eomtype should not be global The eomtype variable is used only inside dissect_ipars. Make it a local variable. It's always set before it's used, there's no need for an initial value. --- epan/dissectors/packet-ipars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-ipars.c b/epan/dissectors/packet-ipars.c index cbb36f16c2..dc73f3ddc8 100644 --- a/epan/dissectors/packet-ipars.c +++ b/epan/dissectors/packet-ipars.c @@ -20,7 +20,6 @@ void proto_register_ipars(void); static int proto_ipars; -static guint8 ipars_eomtype = G_MAXUINT8; static gint ett_ipars; #define S1 (0x00) @@ -41,6 +40,7 @@ dissect_ipars(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U tvbuff_t *next_tvb; int offset = 0; gchar *eom_msg; + guint8 ipars_eomtype; eom_msg = (gchar *)wmem_alloc(pinfo->pool, MAX_EOM_MSG_SIZE); eom_msg[0] = 0;