summaryrefslogtreecommitdiffstats
path: root/apps/playlist_catalog.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-22 12:50:14 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-22 12:50:14 +0000
commit368e89e3bc88446c8fac3d5cfca266061f4e77fb (patch)
treecf79403e4923e09c5801454077d8fc17685efe1d /apps/playlist_catalog.c
parent082c7d3c6b6a868efb4340c34918e7aa2114f07f (diff)
downloadrockbox-368e89e3bc88446c8fac3d5cfca266061f4e77fb.tar.gz
rockbox-368e89e3bc88446c8fac3d5cfca266061f4e77fb.tar.bz2
rockbox-368e89e3bc88446c8fac3d5cfca266061f4e77fb.zip
simplify rockbox_browse a bit and reuse buffer.
use const for argument of set_current_file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28328 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_catalog.c')
-rw-r--r--apps/playlist_catalog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index ef44e36ba7..5f9f46728a 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -70,7 +70,9 @@ static int initialize_catalog(void)
bool default_dir = true;
/* directory config is of the format: "dir: /path/to/dir" */
- if (global_settings.playlist_catalog_dir[0])
+ if (global_settings.playlist_catalog_dir[0] &&
+ strcmp(global_settings.playlist_catalog_dir,
+ PLAYLIST_CATALOG_DEFAULT_DIR))
{
strcpy(playlist_dir, global_settings.playlist_catalog_dir);
default_dir = false;