From: andy Date: Tue, 4 Jun 2002 07:23:34 +0000 (+0000) Subject: Uninitialized data problem. As it turns out, this never bit us because X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2852f27bdcd37730bb9e0629be5b2bbb50379971;p=flightgear.git Uninitialized data problem. As it turns out, this never bit us because the _chord member is only used uninitialized in circumstances where the result is thrown away. Still, bad practice. Found with valgrind. --- diff --git a/src/FDM/YASim/Surface.cpp b/src/FDM/YASim/Surface.cpp index 2b92a26a5..c46fd5577 100644 --- a/src/FDM/YASim/Surface.cpp +++ b/src/FDM/YASim/Surface.cpp @@ -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;