mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-29 14:57:02 -04:00
Initialize the remaining Aircraft members that were previously left uninitialized by the constructor. Coverity (CID 649090) flagged m_pressureAltitude, m_squawk, m_range, m_lastColor, m_prevTrack, and m_trackWhenHeadingSet as potentially uninitialized. Initialize them to sensible default values consistent with their intended use. This is likely not an issue, as these members are generally initialized before use. However, correctness depends on that assumption holding everywhere. Initializing them in the constructor costs nothing, removes the dependency on call ordering, and eliminates this class of bugs. Signed-off-by: Robin Getz <rgetz503@gmail.com>