diff options
author | Dave Chapman <dave@dchapman.com> | 2005-10-27 13:18:05 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-10-27 13:18:05 +0000 |
commit | d1dc0bd8241bcefc776f92e855a0e15e0b734a62 (patch) | |
tree | a86460d8e0853eefb4ec55ec9a10905019be3059 /apps | |
parent | 5a4423fc234dcf74919a292f3ca3e04c1321a44b (diff) | |
download | rockbox-d1dc0bd8241bcefc776f92e855a0e15e0b734a62.tar.gz rockbox-d1dc0bd8241bcefc776f92e855a0e15e0b734a62.zip |
Zero the FLACContext during initialisation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/flac.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
40 | int endofmetadata=0; | 40 | int endofmetadata=0; |
41 | int blocklength; | 41 | int blocklength; |
42 | 42 | ||
43 | ci->memset(fc,0,sizeof(FLACContext)); | ||
44 | |||
43 | if (ci->read_filebuf(buf, 4) < 4) | 45 | if (ci->read_filebuf(buf, 4) < 4) |
44 | { | 46 | { |
45 | return false; | 47 | return false; |