]> git.mxchange.org Git - flightgear.git/commitdiff
Fix "use of uninitialized data" reported by valgrind.
authorThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:03:05 +0000 (21:03 +0200)
committerThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:11:04 +0000 (21:11 +0200)
(also pushed to JSBSIM cvs)

src/FDM/JSBSim/math/FGLocation.cpp

index 95c6e6e7d0dc6babc8c4062f5f18ef9bdb88a02f..e5ae24959522c85903dc0a1f9ae5297988e1328b 100644 (file)
@@ -85,6 +85,7 @@ FGLocation::FGLocation(void)
 
 FGLocation::FGLocation(double lon, double lat, double radius)
 {
+  mCacheValid = false;
 
   a = b = a2 = b2 = 0.0;
   e = e2 = f = 1.0;