From 0431822e2ac3ca934ab37f7c688ed25d37474be1 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 16 Oct 2011 19:17:23 +0100 Subject: [PATCH] Fix Unix build. --- src/Main/options.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");