Zero the FLACContext during initialisation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7662 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a4423fc23
commit
d1dc0bd824
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue