aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapper.c')
-rw-r--r--src/mapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapper.c b/src/mapper.c
index aac7c0c48..5c19021f9 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -221,12 +221,12 @@ map_spl_path(void)
char *
map_spl_utf8_to_fs(const char *name)
{
- char *filename = g_strconcat(name, PLAYLIST_FILE_SUFFIX, NULL);
- char *path;
+ char *filename, *path;
if (playlist_dir == NULL)
return NULL;
+ filename = g_strconcat(name, PLAYLIST_FILE_SUFFIX, NULL);
path = g_build_filename(playlist_dir, filename, NULL);
g_free(filename);