1
0
Fork 0
forked from len0rd/rockbox

'Move to Next Folder' didn't work if it involved going up to the root of the drive.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2005-07-30 18:12:25 +00:00
parent 7e58bd7cb8
commit 97c6fd0892

View file

@ -1169,7 +1169,14 @@ static int check_subdir_for_music(char *dir, char *subdir)
if (result < 0)
{
dir[dirlen] = '\0';
if (dirlen)
{
dir[dirlen] = '\0';
}
else
{
strcpy(dir, "/");
}
/* we now need to reload our current directory */
if(ft_load(tc, dir) < 0)