From 8b735e7fe384192ef827a5df7b9278b79d1682cf Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:36:53 -0400 Subject: [PATCH] wdsp/fcurve: Initialize filter curve buffer Value-initialize the allocated filter curve buffer. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/fcurve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdsp/fcurve.cpp b/wdsp/fcurve.cpp index 7830ffe45..fa4ae065c 100644 --- a/wdsp/fcurve.cpp +++ b/wdsp/fcurve.cpp @@ -33,7 +33,7 @@ namespace WDSP { void FCurve::fc_impulse (std::vector& impulse, int nc, float f0, float f1, float g0, float, int curve, float samplerate, float scale, int ctfmode, int wintype) { - float* A = new float[nc / 2 + 1]; // (float *) malloc0 ((nc / 2 + 1) * sizeof (float)); + float* A = new float[nc / 2 + 1]{}; // (float *) malloc0 ((nc / 2 + 1) * sizeof (float)); int i; float fn, f; int mid = nc / 2;