aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-09 16:19:31 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-02-09 16:20:39 +0100
commitb7095c7bc5f5c710d958f03b38be83dffff729ae (patch)
tree746dc42e4664282f92c9a37d64a3e11b9c3fd114
parent77ce99ac6720896f504a0581a5c57b2929a13cef (diff)
UHDDevice: Initialize async_event_thrd in constructor
Fixes coverity CID 182757. It's actually a false warning because "async_event_thrd" member is protected by other member "started", so in practice it's never going to be used before being initialized in start(). Change-Id: I5d5739bc9d08fe533e4d44c3992005a14e568a4f
-rw-r--r--Transceiver52M/UHDDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index 1687a60..4466da4 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -369,7 +369,7 @@ uhd_device::uhd_device(size_t tx_sps, size_t rx_sps,
rx_gain_min(0.0), rx_gain_max(0.0),
tx_spp(0), rx_spp(0),
started(false), aligned(false), rx_pkt_cnt(0), drop_cnt(0),
- prev_ts(0,0), ts_initial(0), ts_offset(0)
+ prev_ts(0,0), ts_initial(0), ts_offset(0), async_event_thrd(NULL)
{
this->tx_sps = tx_sps;
this->rx_sps = rx_sps;