From 9a8d4c22d9661bbf21b9cb2c42d6227e7da13286 Mon Sep 17 00:00:00 2001 From: martin-s Date: Mon, 26 May 2008 18:27:21 +0000 Subject: [PATCH] Fix:Core:Fixed config file handling git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1081 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/navit/navit/main.c b/navit/navit/main.c index 4ca2d89..cc9e8af 100644 --- a/navit/navit/main.c +++ b/navit/navit/main.c @@ -239,15 +239,15 @@ int main(int argc, char **argv) } li = list; do { - // Try the next config file possibility from the list - config_file = li->data; - if (!file_exists(config_file)) g_free(config_file); - li = g_list_next(li); if (li == NULL) { // We have not found an existing config file from all possibilities printf(_("No config file navit.xml, navit.xml.local found\n")); exit(1); } + // Try the next config file possibility from the list + config_file = li->data; + if (!file_exists(config_file)) g_free(config_file); + li = g_list_next(li); } while (!file_exists(config_file)); g_list_free(list); -- 2.7.4