From: James Turner Date: Sun, 16 Oct 2011 18:17:23 +0000 (+0100) Subject: Fix Unix build. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0431822e2ac3ca934ab37f7c688ed25d37474be1;p=flightgear.git Fix Unix build. --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index c65b355b1..b76922142 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -182,9 +182,9 @@ fgSetDefaults () #elif defined(sgi) fgSetString("/sim/startup/browser-app", "launchWebJumper"); #else - envp = ::getenv( "WEBBROWSER" ); - if (!envp) envp = "netscape"; - fgSetString("/sim/startup/browser-app", envp); + char* browserEnv = ::getenv( "WEBBROWSER" ); + if (!browserEnv) browserEnv = "netscape"; + fgSetString("/sim/startup/browser-app", browserEnv); #endif fgSetString("/sim/logging/priority", "alert");