1
0
Fork 0

Fix a typo and an unitialized variable

This commit is contained in:
fredb 2005-12-22 06:42:00 +00:00
parent 49ba607726
commit 653f063bcf

View file

@ -299,7 +299,7 @@ bool fgInitFGRoot ( int argc, char **argv ) {
// aircraft // aircraft
bool fgInitFGAircraft ( int argc, char **argv ) { bool fgInitFGAircraft ( int argc, char **argv ) {
string aircraft; string aircraft;
char* homedir; char* homedir = NULL;
// First parse command line options looking for --aircraft=, this // First parse command line options looking for --aircraft=, this
// will override anything specified in a config file // will override anything specified in a config file
@ -605,7 +605,7 @@ bool fgInitConfig ( int argc, char **argv ) {
#ifdef _MSC_VER #ifdef _MSC_VER
char *envp = ::getenv( "APPDATA" ); char *envp = ::getenv( "APPDATA" );
if (envp != NULL ) { if (envp != NULL ) {
SGPath config( env ); SGPath config( envp );
config.append( "flightgear.org" ); config.append( "flightgear.org" );
#else #else
if ( homedir != NULL ) { if ( homedir != NULL ) {