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;