Fix:core:Fix compile error with older compilers
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 26 Jun 2008 18:16:19 +0000 (18:16 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 26 Jun 2008 18:16:19 +0000 (18:16 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1171 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/main.c

index a2f1108..4b9867a 100644 (file)
@@ -139,6 +139,7 @@ int main(int argc, char **argv)
        char *s;
        int l;
        int opt;
+    GList *list = NULL, *li;
 
 
 #ifndef _WIN32
@@ -248,7 +249,6 @@ int main(int argc, char **argv)
        // use 1st cmd line option that is left for the config file
        if (optind < argc) config_file = argv[optind];
 
-    GList *list = NULL, *li;
     // if config file is explicitely given only look for it, otherwise try std paths
        if (config_file) list = g_list_append(list,g_strdup(config_file));
     else {