From adbea50027abc582fba713b2290509c42f7471c5 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Mon, 3 Feb 2020 21:26:41 +0100 Subject: [PATCH] It is always better to initialize variables --- ambed/cfirfilter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ambed/cfirfilter.cpp b/ambed/cfirfilter.cpp index 602e01c..f002440 100644 --- a/ambed/cfirfilter.cpp +++ b/ambed/cfirfilter.cpp @@ -30,6 +30,7 @@ CFIRFilter::CFIRFilter(const float* taps, int tapsLength) { m_taps = new float[tapsLength]; m_buffer = new float[tapsLength]; + m_tapsLength = tapsLength; ::memcpy(m_taps, taps, tapsLength * sizeof(float)); ::memset(m_buffer, 0, tapsLength * sizeof(float));