]> git.mxchange.org Git - flightgear.git/commit
Melchior FRANZ:
authorehofman <ehofman>
Wed, 6 Apr 2005 08:24:30 +0000 (08:24 +0000)
committerehofman <ehofman>
Wed, 6 Apr 2005 08:24:30 +0000 (08:24 +0000)
commit28fe28ec4f1d3bd3994984c2ced836f42488ba55
tree6584438817036e42af7d35c5412046bc64778493
parentd3bdc4e7bc909d3f7f4adb49d6b4330a592e3ac5
Melchior FRANZ:

_course_deg is first initialized in the if()-branch (gps.cxx:419). But
this branch isn't entered at first run if wp0==wp1, so that in line 615
fgfs tries to SG_NORMALIZE_RANGE() a random value, which can take a
long while if the number huge. This was occasionally a number greater
than 10160!

- initialize all vars before they are used (fixes endless loop)
- fix some compiler warnings (initialization order, unused vars)
src/Instrumentation/altimeter.cxx
src/Instrumentation/encoder.cxx
src/Instrumentation/gps.cxx
src/Instrumentation/mag_compass.cxx