forked from len0rd/rockbox
get_metadata(): Clear the destination mp3entry to avoid having bogus pointers appear in it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14992 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ac7947e42
commit
e49247e3e8
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
|
||||||
int i;
|
int i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Clear the mp3entry to avoid having bogus pointers appear */
|
||||||
|
memset(id3, 0, sizeof(struct mp3entry));
|
||||||
|
|
||||||
/* Take our best guess at the codec type based on file extension */
|
/* Take our best guess at the codec type based on file extension */
|
||||||
id3->codectype = probe_file_format(trackname);
|
id3->codectype = probe_file_format(trackname);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue