Blob Blame History Raw
From 85a8f0b9027367c1aacc5c462e249905a31748c3 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Fri, 30 Apr 2021 11:57:46 -0400
Subject: [PATCH 1/3] =?UTF-8?q?Zero-initialize=20sfinfo=20in=20resample.c?=
 =?UTF-8?q?=20to=20fix=20Valgrind=20error=20=E2=80=9CConditional=20jump=20?=
 =?UTF-8?q?or=20move=20depends=20on=20uninitialised=20value(s)=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/resample.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/resample.c b/src/resample.c
index 5e96654..941cd23 100644
--- a/src/resample.c
+++ b/src/resample.c
@@ -30,7 +30,7 @@ static double apply_gain (float * data, long frames, int channels, double max, d
 int
 main (int argc, char *argv [])
 {	SNDFILE	*infile, *outfile = NULL ;
-	SF_INFO sfinfo ;
+	SF_INFO sfinfo = {} ;
 	sf_count_t nframes ;
 
 	int normalize = 1 ;
-- 
2.30.2