diff options
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; |