Browse Source

dtv: Initialize UDP datagram buffer

Value-initialize m_datagram so its contents are defined before
the buffer is filled with received datagram data.

Identified by cppcheck.

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

1
sdrbase/dtv/dtvudp.cpp

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
DTVUDP::DTVUDP() :
m_port(5004),
m_datagram{},
m_datagramFill(0),
m_datagrams(0),
m_address(QHostAddress::LocalHost),

Loading…
Cancel
Save