mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
PVS-Studio static analysis corrections (3) issue #137
This commit is contained in:
@@ -132,12 +132,7 @@ bool HackRFInput::start()
|
||||
|
||||
if (m_running) stop();
|
||||
|
||||
if ((m_hackRFThread = new HackRFInputThread(m_dev, &m_sampleFifo)) == 0)
|
||||
{
|
||||
qCritical("HackRFInput::start: out of memory");
|
||||
stop();
|
||||
return false;
|
||||
}
|
||||
m_hackRFThread = new HackRFInputThread(m_dev, &m_sampleFifo);
|
||||
|
||||
// mutexLocker.unlock();
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include "dsp/samplesinkfifo.h"
|
||||
|
||||
@@ -32,6 +33,7 @@ HackRFInputThread::HackRFInputThread(hackrf_device* dev, SampleSinkFifo* sampleF
|
||||
m_log2Decim(0),
|
||||
m_fcPos(0)
|
||||
{
|
||||
std::fill(m_buf, m_buf + 2*HACKRF_BLOCKSIZE, 0);
|
||||
}
|
||||
|
||||
HackRFInputThread::~HackRFInputThread()
|
||||
|
||||
Reference in New Issue
Block a user