From 2852f27bdcd37730bb9e0629be5b2bbb50379971 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 4 Jun 2002 07:23:34 +0000 Subject: [PATCH] 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. --- src/FDM/YASim/Surface.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5