From 37ef781b8c6f60a6e669117c6f9dc9c5bbc8f226 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Thu, 5 Jun 2025 02:14:23 +0300
Subject: [PATCH 16/16] 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 9c1297fe5b..3495eafbe7 100644
--- a/utility/registry_ini.c
+++ b/utility/registry_ini.c
@@ -3065,7 +3065,7 @@ static struct entry *entry_new(struct section *psection, const char *name)
 
   pentry = fc_malloc(sizeof(struct entry));
   pentry->name = fc_strdup(name);
-  pentry->type = -1;    /* Invalid case. */
+  pentry->type = ENTRY_ILLEGAL;
   pentry->used = 0;
   pentry->comment = NULL;
 
-- 
2.47.2

