]> git.mxchange.org Git - flightgear.git/commitdiff
Mathias: silence some valgrind warnings so that you can concentrate better on the...
authorehofman <ehofman>
Tue, 6 Dec 2005 18:32:07 +0000 (18:32 +0000)
committerehofman <ehofman>
Tue, 6 Dec 2005 18:32:07 +0000 (18:32 +0000)
src/Airports/simple.cxx
src/Airports/simple.hxx
src/Input/input.cxx
src/Traffic/Schedule.cxx

index a3b4e636aa6922286805ea1798d7de693e4340f0..464c32fea2c899f00d22a273f69b8757380ac357 100644 (file)
@@ -1281,6 +1281,9 @@ bool FGTaxiRoute::next(int *val)
 FGGroundNetwork::FGGroundNetwork()
 {
   hasNetwork = false;
+  foundRoute = false;
+  totalDistance = 0;
+  maxDistance = 0;
 }
 
 void FGGroundNetwork::addSegment(const FGTaxiSegment &seg)
index 9e3161474950b72e5e1f5db13976a8668ff942ce..774f69118608ee770de1612a509c757c7c7811a9 100644 (file)
@@ -68,7 +68,7 @@ private:
   double tailWind;
   double crssWind;
 public:
-  ScheduleTime() {};
+  ScheduleTime() : tailWind(0), crssWind(0) {};
   ScheduleTime(const ScheduleTime &other);
   ScheduleTime &operator= (const ScheduleTime &other);
   string getName(time_t dayStart);
index 48ea1c2b49bd0790625b9473643abfaadd9fd0fe..c429389992870be33c62ac9f3d38eb0f105416d7 100644 (file)
@@ -973,6 +973,8 @@ FGInput::_find_key_bindings (unsigned int k, int modifiers)
 
 FGInput::button::button ()
   : is_repeatable(false),
+    interval_sec(0),
+    last_dt(0),
     last_state(0)
 {
 }
@@ -995,7 +997,9 @@ FGInput::axis::axis ()
   : last_value(9999999),
     tolerance(0.002),
     low_threshold(-0.9),
-    high_threshold(0.9)
+    high_threshold(0.9),
+    interval_sec(0),
+    last_dt(0)
 {
 }
 
@@ -1013,6 +1017,12 @@ FGInput::axis::~axis ()
 ////////////////////////////////////////////////////////////////////////
 
 FGInput::joystick::joystick ()
+  : jsnum(0),
+    js(0),
+    naxes(0),
+    nbuttons(0),
+    axes(0),
+    buttons(0)
 {
 }
 
index 6dfe218da9e1fa47ad50dab8f214365e65b3fbeb..1aae3e683f14e81fcd91840014907ea6b7862b4f 100644 (file)
@@ -59,6 +59,13 @@ FGAISchedule::FGAISchedule()
 {
   firstRun     = true;
   AIManagerRef = 0;
+
+  heavy = false;
+  lat = 0;
+  lon = 0;
+  radius = 0;
+  groundOffset = 0;
+  distanceToUser = 0;
 }
 
 FGAISchedule::FGAISchedule(string    mdl, 
@@ -80,8 +87,11 @@ FGAISchedule::FGAISchedule(string    mdl,
   airline      = arln;
   m_class      = mclass;
   flightType   = fltpe;
+  lat = 0;
+  lon = 0;
   radius       = rad;
   groundOffset = grnd;
+  distanceToUser = 0;
   heavy = hvy;
   for (FGScheduledFlightVecIterator i = flt.begin();
        i != flt.end();