From 7e609d6a051f652e87e31b72a4c9d72b0b804f94 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 16 Jul 2018 23:01:16 -0400 Subject: [PATCH] fix some config entries not being saved --- libretro-common/file/config_file.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 1bb3e1db2c..18169f1304 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -136,9 +136,9 @@ static struct config_entry_list* merge_sort_linked_list(struct config_entry_list } if (!result) - result=next; + result = next; else - tail->next=next; + tail->next = next; tail = next; } @@ -989,9 +989,7 @@ void config_file_dump(config_file_t *conf, FILE *file) includes = includes->next; } - list = (struct config_entry_list*)conf->entries; - - merge_sort_linked_list(list, config_sort_compare_func); + list = merge_sort_linked_list((struct config_entry_list*)conf->entries, config_sort_compare_func); while (list) {