mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 11:08:16 +00:00
(config_file.c) Fix control flow issue
This commit is contained in:
parent
ffaa32842f
commit
8f7e253f1f
@ -888,8 +888,9 @@ bool config_file_write(config_file_t *conf, const char *path)
|
||||
|
||||
void config_file_dump(config_file_t *conf, FILE *file)
|
||||
{
|
||||
struct config_entry_list *list = NULL;
|
||||
struct config_entry_list *list = NULL;
|
||||
struct config_include_list *includes = conf->includes;
|
||||
|
||||
while (includes)
|
||||
{
|
||||
fprintf(file, "#include \"%s\"\n", includes->path);
|
||||
@ -897,11 +898,9 @@ void config_file_dump(config_file_t *conf, FILE *file)
|
||||
}
|
||||
|
||||
list = (struct config_entry_list*)conf->entries;
|
||||
|
||||
while (list)
|
||||
{
|
||||
if (!list)
|
||||
break;
|
||||
|
||||
if (!list->readonly && list->key)
|
||||
fprintf(file, "%s = \"%s\"\n", list->key, list->value);
|
||||
list = list->next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user