summaryrefslogtreecommitdiffstats
path: root/apps/playlist_catalog.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-12-06 22:26:31 +0000
committerThomas Martitz <kugel@rockbox.org>2010-12-06 22:26:31 +0000
commit2c2416094f426972c9e2e96d25058311bbe82f97 (patch)
tree449b4e12e01c3c5c4afa2ae6a8cd396df82b5a38 /apps/playlist_catalog.c
parentc35b43b0f54bd607d38908544446caaa02f148a3 (diff)
downloadrockbox-2c2416094f426972c9e2e96d25058311bbe82f97.tar.gz
rockbox-2c2416094f426972c9e2e96d25058311bbe82f97.tar.bz2
rockbox-2c2416094f426972c9e2e96d25058311bbe82f97.zip
Get rid of get_user_file_path and do the path handling in wrappers for open() and friends.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28752 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_catalog.c')
-rw-r--r--apps/playlist_catalog.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index 5f9f46728a..ff69b28263 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -81,11 +81,9 @@ static int initialize_catalog(void)
/* fall back to default directory if no or invalid config */
if (default_dir)
{
- const char *dir = get_user_file_path(PLAYLIST_CATALOG_DEFAULT_DIR,
- FORCE_BUFFER_COPY|NEED_WRITE,
- playlist_dir, sizeof(playlist_dir));
- if (!dir_exists(dir))
- mkdir(dir);
+ strcpy(playlist_dir, PLAYLIST_CATALOG_DEFAULT_DIR);
+ if (!dir_exists(playlist_dir))
+ mkdir(playlist_dir);
}
playlist_dir_length = strlen(playlist_dir);