diff options
Diffstat (limited to 'apps/playlist_catalog.c')
-rw-r--r-- | apps/playlist_catalog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c index 3d524998b2..2147ea990c 100644 --- a/apps/playlist_catalog.c +++ b/apps/playlist_catalog.c | |||
@@ -86,6 +86,10 @@ static int initialize_catalog(void) | |||
86 | mkdir(playlist_dir); | 86 | mkdir(playlist_dir); |
87 | } | 87 | } |
88 | 88 | ||
89 | /* remove duplicate leading '/' */ | ||
90 | if (playlist_dir[0] == '/' && playlist_dir[1] == '/') | ||
91 | strcpy(playlist_dir, &playlist_dir[1]); | ||
92 | |||
89 | playlist_dir_length = strlen(playlist_dir); | 93 | playlist_dir_length = strlen(playlist_dir); |
90 | 94 | ||
91 | if (dir_exists(playlist_dir)) | 95 | if (dir_exists(playlist_dir)) |