From: curt Date: Fri, 4 Oct 2002 20:57:18 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0b7744fd564a6935ca19a9a6746e21d311132e8;p=flightgear.git Frederic Bouvier: The FGGlobals constructor does not initialise the locale pointer. Under MSVC, uninitialized pointer have a value of 0xcdcdcdcd, not 0, so a test in mainLoop fails and the program segfault. This patch set un initial value to locale. --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 5ec4529ee..e28dbce22 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -52,7 +52,8 @@ FGGlobals::FGGlobals() : props(new SGPropertyNode), initial_state(0), commands(new SGCommandMgr), - io(new FGIO) + io(new FGIO), + locale(NULL) { }