From 4813019c58162682c6a9c41a9c37278b56738757 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 28 Jun 2017 07:53:05 +0200 Subject: [PATCH] Cleanup --- libretro-common/file/config_file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 587c021a7f..797b84e5a4 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -193,9 +193,9 @@ static char *extract_value(char *line, bool is_value) /* Move semantics? */ static void add_child_list(config_file_t *parent, config_file_t *child) { + struct config_entry_list *list = child->entries; if (parent->entries) { - struct config_entry_list *list = child->entries; struct config_entry_list *head = parent->entries; while (head->next) head = head->next; @@ -210,8 +210,6 @@ static void add_child_list(config_file_t *parent, config_file_t *child) } else { - struct config_entry_list *list = child->entries; - /* set list readonly */ while (list) {