From d573a802c419e4dadd330a8dbff3dd5861a64e66 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 25 Aug 2020 18:12:28 +0200 Subject: [PATCH] Simplify config_file_new_alloc --- libretro-common/file/config_file.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 943786ba72..c2cf7d5897 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -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; }