diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-26 18:27:21 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-26 18:27:21 +0000 |
commit | 18c8a5b31321642419e01408a25a7e2248eebf2a (patch) | |
tree | 42daf674a80a3051b9dc7fd5b0489084c1d6c5b5 | |
parent | 5f680fa5094fe8002c1c46409d4b2c01ef7415e6 (diff) | |
download | navit-18c8a5b31321642419e01408a25a7e2248eebf2a.tar.gz |
Fix:Core:Fixed config file handling
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1081 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/main.c b/navit/main.c index 4ca2d89bc..cc9e8afd0 100644 --- a/navit/main.c +++ b/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); |