]> git.mxchange.org Git - flightgear.git/commitdiff
Frederic Bouvier:
authorcurt <curt>
Fri, 4 Oct 2002 20:57:18 +0000 (20:57 +0000)
committercurt <curt>
Fri, 4 Oct 2002 20:57:18 +0000 (20:57 +0000)
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

index 5ec4529ee36caab69a229a5fc986016e10349aa7..e28dbce2222a0c422da69ac20cdbb37440196fa1 100644 (file)
@@ -52,7 +52,8 @@ FGGlobals::FGGlobals() :
     props(new SGPropertyNode),
     initial_state(0),
     commands(new SGCommandMgr),
-    io(new FGIO)
+    io(new FGIO),
+    locale(NULL)
 {
 }