Initialize m_spectrumGUI to nullptr in the LocalSinkSettings constructor.
Keep the runtime GUI association separate from resetToDefaults().
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel to nullptr in the HeatMapSink constructor to avoid
leaving the channel pointer uninitialized.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_scopeGUI to nullptr in the HeatMapSettings constructor to
avoid leaving the member uninitialized.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel sample rate, frequency offset, center frequency,
and device UID to defined values.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the FileSinkBaseband spectrum sink, GUI message queue,
center frequency, and timer to defined values.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the WFMDemodSink channel pointer to nullptr so it has a
defined value before a channel is assigned.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the interpolator distances, channel message queue pointer,
and audio interpolator distances in VORDemodSCSink to ensure these
members have defined values before use.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the SSBDemodSink channel pointer to nullptr to ensure the
member has a defined value before a channel is assigned.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the DNR configuration members of SSBDemodFilterSettings with
the same defaults used by SSBDemodSettings.
This prevents the filter-bank settings from being left uninitialized
and preserves the existing SSB DNR defaults.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scope and channel pointers and the RTTY data and baud
rate state in RttyDemodSink.
The changes were identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel pointer and receive byte buffer in the
RadiosondeDemodSink constructor.
This removes uninitialized member warnings and ensures the receive
buffer starts in a defined state.
found by cppcheck
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the uninitialized codeword arrays and reorder constructor
initializers to match the member declaration order.
This removes cppcheck static-analysis warnings and avoids -Wreorder diagnostics
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Zero-initialize the packet byte buffer so it has a defined state when
PacketDemodFramer::State is constructed.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scope sink, channel, and data state members to defined
values before they are used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_magsqMax to zero so the magnitude tracking state has a
defined value before it is first used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_magsqMax to zero so the magnitude tracking state has a
defined value before it is first used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the carrier/sideband power, modulation depth, and DDM/SDM
members to zero before they are used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_spectrumVis in ILSDemodBaseband's constructor to avoid
uninitialized member state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize pointer and level members in FT8DemodSink's constructor to
avoid uninitialized member state and ensure owned resources start from
a known state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_df in FT8DemodFilterProxy's constructor to avoid
uninitialized member state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel and m_bytes in EndOfTrainDemodSink's constructor
to avoid uninitialized member state reported by cppcheck.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel and m_formatStatusText in DSDDemodSink's
constructor to avoid uninitialized member state reported by cppcheck.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the default AMBE feature index and feature pointer to defined
values while preserving aggregate initialization.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the DSC demodulator sink's channel, data state, and decoder
members to defined values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the viterbi decoder state banks to zero in the constructor,
ensuring all state metrics and paths have defined initial values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the LUT and MODCOD tracking members in cstln_lut to
avoid leaving them uninitialized during construction.
Initialize mer_out to nullptr in fast_qpsk_receiver to prevent use of an
uninitialized output pointer.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize HDLC decoder state members in the constructor to ensure they
start with defined values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scheduler pipe and runnable arrays to avoid leaving
member storage uninitialized.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize buffers, pointers, and configuration state that were left
uninitialized in the DVB-S2 FEC decoder and framer classes to ensure
deterministic initial state and avoid use of uninitialized values.
These changes address uninitialized member warnings reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize synchronization state, lock timing values, and output
pointers in the mpeg_sync constructor to ensure deterministic state
before the decoder is configured.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Zero-initialize the bitvect storage in the default constructor so that
new bit vectors have a deterministic state instead of containing
uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the convol_multipoly polynomial pointer to nullptr so that
instances have a deterministic state before being configured.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize buffer sizes, counters, state, interpolation values, and
channel settings in the DATVDemodSink constructor to ensure deterministic
initial state and avoid use of uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize counters, history arrays, sync state, and magnitude tracking
members in the ChirpChatDemodSink constructor to ensure deterministic
initial state and avoid use of uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Use the validated bandwidth index when accessing bandwidth tables in the
ChirpChat, MeshCore, and Meshtastic channel GUIs. The previous code used the
raw UI value after clamping it into m_bandwidthIndex, allowing negative or
out-of-range array accesses.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_rollupState to nullptr in the constructor and set
m_autoNbSymbolsMax to false in resetToDefaults(). This ensures the optional
rollup state pointer and the automatic message length setting have defined
initial values rather than relying on uninitialized storage.
Pointed out by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_radiotext_AB_flag in the RDSParser constructor to ensure the
radio text state is defined before the first Group 2 update.
Keep the flag out of clearUpdateFlags() because it is persistent parser state,
not a transient update flag. Resetting it when update flags are cleared could
incorrectly appear as an A/B transition and cause stale radio text handling.
Pointed out by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Zero-initialize the pilot PLL sample buffer used by BFMDemodSink.
This ensures all four PLL sample values have defined initial values
before they are consumed by the FM stereo processing path and removes
the uninitialized member warning reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the field and vertical sync detection sample counters and
the previous sample value in ATVDemodSink.
This gives the video synchronization state defined initial values when
the sink is constructed and removes the uninitialized member warnings
reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel pointer to nullptr and zero-initialize the
synchronous AM demodulation buffer in AMDemodSink.
This ensures both members have defined values when the sink is
constructed and removes the uninitialized member warnings reported by
cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the m_bytes buffer to zero so all elements have defined
values when an AISDemodSink is constructed.
Detected by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_matchColumn and m_autoTarget in the NotificationSettings
constructor rather than assigning m_matchColumn in the constructor body.
This ensures both members are initialized before the constructor body
executes and removes the uninitialized m_autoTarget member.
Detected by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Value-initialize the Interogator airspace member so it has a defined
state when an Interogator is constructed.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the CPR latitude and longitude state when an Aircraft is
created so the position data has defined values before the first CPR
calculation.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel to nullptr in the ChannelPowerSink constructor to
ensure the pointer has a defined value before a channel is assigned.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>