diff options
| author | Magnus Holmgren <magnushol@gmail.com> | 2005-07-30 18:12:25 +0000 |
|---|---|---|
| committer | Magnus Holmgren <magnushol@gmail.com> | 2005-07-30 18:12:25 +0000 |
| commit | 97c6fd0892efe3a1da25532e4ce76344b522d4df (patch) | |
| tree | 70b4172c11a12de3ccd6c8365f6b8111d007a274 /apps | |
| parent | 7e58bd7cb8ed27943723c85083a69519c40798ee (diff) | |
| download | rockbox-97c6fd0892efe3a1da25532e4ce76344b522d4df.zip rockbox-97c6fd0892efe3a1da25532e4ce76344b522d4df.tar.gz rockbox-97c6fd0892efe3a1da25532e4ce76344b522d4df.tar.bz2 rockbox-97c6fd0892efe3a1da25532e4ce76344b522d4df.tar.xz | |
'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
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/playlist.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 9a22add..d1c83f0 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -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) |