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;