Browse Source

remoteoutput: Initialize FEC device index

Initialize m_deviceIndex to prevent use of an indeterminate
device index before configuration is applied.

Identified by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
bfeecb8341
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 1
      plugins/samplesink/remoteoutput/udpsinkfec.cpp

1
plugins/samplesink/remoteoutput/udpsinkfec.cpp

@ -37,6 +37,7 @@ UDPSinkFEC::UDPSinkFEC() : @@ -37,6 +37,7 @@ UDPSinkFEC::UDPSinkFEC() :
m_txBlockIndex(0),
m_frameCount(0),
m_sampleIndex(0),
m_deviceIndex(0),
m_remoteOutputSender(nullptr),
m_senderThread(nullptr),
m_remoteAddress("127.0.0.1"),

Loading…
Cancel
Save