1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-18 00:34:13 -04:00
Files
sdrangel/plugins
Robin Getz 810b0524fb adsb: fix Coverity UNINIT_CTOR warning in AircraftModel
Initialize the AircraftModel settings pointer to nullptr.

Coverity (CID 649096) flagged m_settings as potentially
uninitialized because the compiler-generated constructor does not
initialize it. Initialize it to nullptr, which is the appropriate
default until setSettings() provides a valid pointer.

This is likely not an issue, as m_settings is typically assigned
shortly after construction. However, correctness depends on that
assumption holding everywhere. Initializing it in the declaration
costs nothing, removes the dependency on initialization order, and
eliminates this class of bugs.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-07-12 19:16:08 -04:00
..
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-07-04 09:55:26 +02:00
2026-07-04 09:55:26 +02:00