]> git.mxchange.org Git - flightgear.git/commitdiff
Uninitialized data problem. As it turns out, this never bit us because
authorandy <andy>
Tue, 4 Jun 2002 07:23:34 +0000 (07:23 +0000)
committerandy <andy>
Tue, 4 Jun 2002 07:23:34 +0000 (07:23 +0000)
the _chord member is only used uninitialized in circumstances where the
result is thrown away.  Still, bad practice.  Found with valgrind.

src/FDM/YASim/Surface.cpp

index 2b92a26a59a3ff0ccf9df3c2323cd494b88e68a7..c46fd55772b5f31d776c55118eb12de9e4de24f1 100644 (file)
@@ -16,6 +16,7 @@ Surface::Surface()
     _orient[3] = 0; _orient[4] = 1; _orient[5] = 0;
     _orient[6] = 0; _orient[7] = 0; _orient[8] = 1;
     
+    _chord = 0;
     _incidence = 0;
     _slatPos = _spoilerPos = _flapPos = 0;
     _slatDrag = _spoilerDrag = _flapDrag = 1;