fix: config_file_read dont initialize hashmap on file error

This commit is contained in:
2026-05-16 15:40:03 +02:00
parent fe1fc9864c
commit bd61cb0a2d
+2 -2
View File
@@ -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;