Browse Source

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 <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 3 months ago
parent
commit
fae3be2b39
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channelrx/demodnfm/nfmdemod.cpp

2
plugins/channelrx/demodnfm/nfmdemod.cpp

@ -55,6 +55,8 @@ const int NFMDemod::m_udpBlockSize = 512; @@ -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)

Loading…
Cancel
Save