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.
This commit is contained in:
Martin Kaiser 2023-11-26 16:58:31 +01:00 committed by John Thacker
parent d27c0adb5a
commit 34cc9b2e1a
1 changed files with 1 additions and 1 deletions

View File

@ -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;