summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/channelrx/demodchirpchat/chirpchatdemodsink.cpp2
-rw-r--r--plugins/samplesource/remoteinput/remoteinputbuffer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/channelrx/demodchirpchat/chirpchatdemodsink.cpp b/plugins/channelrx/demodchirpchat/chirpchatdemodsink.cpp
index 5693957b0..4310d44e3 100644
--- a/plugins/channelrx/demodchirpchat/chirpchatdemodsink.cpp
+++ b/plugins/channelrx/demodchirpchat/chirpchatdemodsink.cpp
@@ -477,7 +477,7 @@ unsigned int ChirpChatDemodSink::argmax(
{
magsqMax = 0.0;
magsqTotal = 0.0;
- unsigned int imax;
+ unsigned int imax = 0;
double magSum = 0.0;
for (unsigned int i = 0; i < fftMult*fftLength; i++)
diff --git a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp
index 6f070e09e..b37e3fba3 100644
--- a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp
+++ b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp
@@ -28,7 +28,6 @@
RemoteInputBuffer::RemoteInputBuffer() :
m_decoderSlots(nullptr),
m_frames(nullptr),
- m_decoderIndexHead(m_nbDecoderSlots/2),
m_curNbBlocks(0),
m_minNbBlocks(256),
m_curOriginalBlocks(0),
@@ -47,6 +46,7 @@ RemoteInputBuffer::RemoteInputBuffer() :
{
m_currentMeta.init();
setNbDecoderSlots(16);
+ m_decoderIndexHead = m_nbDecoderSlots/2;
m_tvOut_sec = 0;
m_tvOut_usec = 0;
m_readNbBytes = 1;