mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-07 03:53:18 -04:00
PVS-Studio static analysis corrections (3) issue #137
This commit is contained in:
@@ -116,12 +116,7 @@ bool HackRFOutput::start()
|
||||
|
||||
if (m_running) stop();
|
||||
|
||||
if((m_hackRFThread = new HackRFOutputThread(m_dev, &m_sampleSourceFifo)) == 0)
|
||||
{
|
||||
qCritical("HackRFOutput::start: out of memory");
|
||||
stop();
|
||||
return false;
|
||||
}
|
||||
m_hackRFThread = new HackRFOutputThread(m_dev, &m_sampleSourceFifo);
|
||||
|
||||
// mutexLocker.unlock();
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ HackRFOutputThread::HackRFOutputThread(hackrf_device* dev, SampleSourceFifo* sam
|
||||
m_sampleFifo(sampleFifo),
|
||||
m_log2Interp(0)
|
||||
{
|
||||
std::fill(m_buf, m_buf + 2*HACKRF_BLOCKSIZE, 0);
|
||||
}
|
||||
|
||||
HackRFOutputThread::~HackRFOutputThread()
|
||||
|
||||
Reference in New Issue
Block a user