Simplify config_file_new_alloc

This commit is contained in:
twinaphex 2020-08-25 18:12:28 +02:00
parent f454665be2
commit d573a802c4

View File

@ -778,16 +778,7 @@ config_file_t *config_file_new_alloc(void)
struct config_file *conf = (struct config_file*)malloc(sizeof(*conf));
if (!conf)
return NULL;
conf->path = NULL;
conf->entries = NULL;
conf->tail = NULL;
conf->last = NULL;
conf->includes = NULL;
conf->include_depth = 0;
conf->guaranteed_no_duplicates = false;
conf->modified = false;
config_file_initialize(conf);
return conf;
}