From 7403cc602147deb5079e5a7b52024baef3d63957 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Thu, 5 Jun 2025 02:11:49 +0300
Subject: [PATCH 94/94] entry_new(): Initialize entry type with ENTRY_ILLEGAL

See RM #1484

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 utility/registry_ini.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utility/registry_ini.c b/utility/registry_ini.c
index 9e327e1457..a3f2f5d126 100644
--- a/utility/registry_ini.c
+++ b/utility/registry_ini.c
@@ -3164,7 +3164,7 @@ static struct entry *entry_new(struct section *psection, const char *name)
   } else {
     pentry->name = fc_strdup(name);
   }
-  pentry->type = -1;    /* Invalid case. */
+  pentry->type = ENTRY_ILLEGAL;
   pentry->used = 0;
   pentry->comment = nullptr;
 
-- 
2.47.2

