Browse Source

demodmeshcore: Initialize network manager pointer

Initialize m_networkManager before it is assigned in the constructor.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
fca0e71086
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      plugins/channelrx/demodmeshcore/meshcoredemod.cpp

3
plugins/channelrx/demodmeshcore/meshcoredemod.cpp

@ -83,7 +83,8 @@ MeshcoreDemod::MeshcoreDemod(DeviceAPI* deviceAPI) : @@ -83,7 +83,8 @@ MeshcoreDemod::MeshcoreDemod(DeviceAPI* deviceAPI) :
m_lastMsgHeaderParityStatus(0),
m_lastMsgPayloadCRC(false),
m_lastMsgPayloadParityStatus(0),
m_udpSink(this, 256)
m_udpSink(this, 256),
m_networkManager(nullptr)
{
setObjectName(m_channelId);
applySettings(m_settings, true);

Loading…
Cancel
Save