diff options
author | Max Kellermann <max@duempel.org> | 2009-01-18 16:15:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-18 16:15:45 +0100 |
commit | 9933144de7389b12b2a75cfb4320baecefa952af (patch) | |
tree | 09d7fc155aa64e596c38a2a7d7908e6c8705bf3b /src/playlist.c | |
parent | c2cc3b4923684cb00518e7b8db25a9b56c60dc9d (diff) | |
download | mpd-9933144de7389b12b2a75cfb4320baecefa952af.tar.gz mpd-9933144de7389b12b2a75cfb4320baecefa952af.tar.xz mpd-9933144de7389b12b2a75cfb4320baecefa952af.zip |
mapper: make the playlist directory optional
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c index 20ea05907..e4f9e3538 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1216,6 +1216,9 @@ enum playlist_result savePlaylist(const char *utf8file) return PLAYLIST_RESULT_BAD_NAME; path = map_spl_utf8_to_fs(utf8file); + if (path == NULL) + return PLAYLIST_RESULT_DISABLED; + if (g_file_test(path, G_FILE_TEST_EXISTS)) { g_free(path); return PLAYLIST_RESULT_LIST_EXISTS; |