diff options
-rw-r--r-- | src/storedPlaylist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c index 332f99456..b62ca42e4 100644 --- a/src/storedPlaylist.c +++ b/src/storedPlaylist.c @@ -67,7 +67,9 @@ static int writeStoredPlaylistToPath(int fd, List *list, const char *utf8path) char *s; char path_max_tmp[MPD_PATH_MAX]; - if (!utf8path || !valid_playlist_name(fd, utf8path)) + assert(utf8path); + + if (!valid_playlist_name(fd, utf8path)) return -1; utf8_to_fs_playlist_path(path_max_tmp, utf8path); |