forked from len0rd/rockbox
uninitialised variable and better return code check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@504 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bdc3ff0b08
commit
af5c607832
1 changed files with 4 additions and 2 deletions
|
@ -176,7 +176,9 @@ setid3v2title(int fd, mp3entry *entry)
|
|||
|
||||
/* Check version */
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
read(fd, header, 10);
|
||||
if(10 != read(fd, header, 10))
|
||||
return;
|
||||
|
||||
version = (unsigned short int)header[3];
|
||||
|
||||
/* Read all frames in the tag */
|
||||
|
@ -348,7 +350,7 @@ getid3v1len(int fd)
|
|||
static int
|
||||
getsonglength(int fd, mp3entry *entry)
|
||||
{
|
||||
long header;
|
||||
long header=0;
|
||||
int version;
|
||||
int layer;
|
||||
int bitindex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue