Fix a typo and an unitialized variable
This commit is contained in:
parent
49ba607726
commit
653f063bcf
1 changed files with 2 additions and 2 deletions
|
@ -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 ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue