(config_file.c) Fix control flow issue

This commit is contained in:
twinaphex 2016-05-24 14:20:03 +02:00
parent ffaa32842f
commit 8f7e253f1f

View File

@ -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;