1
0
Fork 0

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.
This commit is contained in:
curt 2002-10-04 20:57:18 +00:00
parent 5cf14e78c4
commit f0b7744fd5

View file

@ -52,7 +52,8 @@ FGGlobals::FGGlobals() :
props(new SGPropertyNode),
initial_state(0),
commands(new SGCommandMgr),
io(new FGIO)
io(new FGIO),
locale(NULL)
{
}