1
0
Fork 0

Mathias: silence some valgrind warnings so that you can concentrate better on the real problems.

This commit is contained in:
ehofman 2005-12-06 18:32:07 +00:00
parent 0e242871bb
commit 5956ade90c
4 changed files with 25 additions and 2 deletions

View 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)

View 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);

View 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)
{
}

View 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();