From bd61cb0a2dbf464ad3fed6786711769a1877c4b9 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 16 May 2026 15:40:03 +0200 Subject: [PATCH] fix: config_file_read dont initialize hashmap on file error --- src/config_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config_file.c b/src/config_file.c index fb3dbf9..09bd26a 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -68,11 +68,11 @@ void config_file_read(ConfigFile *config, const char *path) { char *line; char *rest; + file_read(&file, path); + config->map = hashmap_new(sizeof(ConfigFileItem), 0, 0, 0, item_hash, item_compare, NULL, NULL); - file_read(&file, path); - if (file.error) { config->error = true; return;