From fae3be2b39cbf1f0b7be8bc2ecce70eb16c804da Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 22 Aug 2026 16:54:40 -0400 Subject: [PATCH] demodnfm/nfmdemod: initialize baseband pointers Initialize the NFM demodulator thread and baseband sink pointers before they are accessed during construction. Reported by Coverity. Signed-off-by: Robin Getz --- plugins/channelrx/demodnfm/nfmdemod.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/channelrx/demodnfm/nfmdemod.cpp b/plugins/channelrx/demodnfm/nfmdemod.cpp index 40aff27f3..e202ee680 100644 --- a/plugins/channelrx/demodnfm/nfmdemod.cpp +++ b/plugins/channelrx/demodnfm/nfmdemod.cpp @@ -55,6 +55,8 @@ const int NFMDemod::m_udpBlockSize = 512; NFMDemod::NFMDemod(DeviceAPI *devieAPI) : ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSink), m_deviceAPI(devieAPI), + m_thread(nullptr), + m_basebandSink(nullptr), m_running(false), m_basebandSampleRate(0), m_centerFrequency(0)