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:
Nicolas Pennequin 2007-10-05 16:02:35 +00:00
parent 6ac7947e42
commit e49247e3e8

View File

@ -101,6 +101,9 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
int i;
#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 */
id3->codectype = probe_file_format(trackname);