]> git.mxchange.org Git - flightgear.git/commit
Patch from Melchior Franz:
authordavid <david>
Fri, 28 Jun 2002 19:14:42 +0000 (19:14 +0000)
committerdavid <david>
Fri, 28 Jun 2002 19:14:42 +0000 (19:14 +0000)
commit51d3edaafacbe2fade5666c868b57345eb188a5c
treead3e8276a690a6336be05377d13e3637882fb19a
parent0c4c182f1e37e9ae27d4cc2f217069020919aac4
Patch from Melchior Franz:

This patch eliminates about 10 of valgrind's "Use of uninitialised
value of size ..." messages. They are all caused by approachlist building
incomplete FGApproach class instances and then copying them into the
approchlist container, hence copying data garbage.
   I know, I couldn't win a beauty contest with this patch, but the
alternative approach -- letting operator<< always leave complete
entries -- didn't look any better. And I do only add those seemingly
useless initialization where the values would be used uninitialized
else. The constructors are only run during setup and won't slow fgfs
down at runtime.
src/ATC/approach.cxx
src/ATC/approach.hxx