From f0b7744fd564a6935ca19a9a6746e21d311132e8 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 4 Oct 2002 20:57:18 +0000 Subject: [PATCH] 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. --- src/Main/globals.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { }