The create_playlist() function didn't correctly handle fd == 0, and didn't force a directory reload
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3490 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5188931e56
commit
887e217486
|
@ -1259,7 +1259,7 @@ bool create_playlist(void)
|
|||
lcd_update();
|
||||
|
||||
fd = creat(filename,0);
|
||||
if (!fd)
|
||||
if (fd < 0)
|
||||
return false;
|
||||
|
||||
plsize = 0;
|
||||
|
@ -1267,6 +1267,5 @@ bool create_playlist(void)
|
|||
close(fd);
|
||||
sleep(HZ);
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user