From d1dc0bd8241bcefc776f92e855a0e15e0b734a62 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 27 Oct 2005 13:18:05 +0000 Subject: [PATCH] Zero the FLACContext during initialisation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7662 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/flac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index b9a3a8a249..dfde12cabc 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c @@ -40,6 +40,8 @@ static bool flac_init(FLACContext* fc) int endofmetadata=0; int blocklength; + ci->memset(fc,0,sizeof(FLACContext)); + if (ci->read_filebuf(buf, 4) < 4) { return false;