]> git.mxchange.org Git - flightgear.git/commitdiff
avoid ERROR: The path '' does not exist... on startup
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 13 Jul 2015 22:15:36 +0000 (23:15 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 13 Jul 2015 22:15:36 +0000 (23:15 +0100)
While harmless, it's an annoying distraction

src/Main/main.cxx

index b2372d457e3c3d94fbe114bc74fb81677280fa66..c19881438450f38e3133d5439c562014dde1744f 100644 (file)
@@ -423,7 +423,7 @@ int fgMainInit( int argc, char **argv )
     string_list *col = new string_list;
     globals->set_channel_options_list( col );
 
-    fgValidatePath("", false);  // initialize static variables
+    fgValidatePath(globals->get_fg_home(), false);  // initialize static variables
     upper_case_property("/sim/presets/airport-id");
     upper_case_property("/sim/presets/runway");
     upper_case_property("/sim/tower/airport-id");