diff --git a/NEWS b/NEWS index e9aad5a9c..bfa9e97e0 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ver 0.21.6 (not yet released) - allow loading playlists specified as absolute filesystem paths - fix negated filter expressions with multiple tag values - fix "list" with filter expression + - omit empty playlist names in "listplaylists" * input - cdio_paranoia: fix build failure due to missing #include * decoder diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index c49ff8e1e..970190967 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -134,7 +134,9 @@ LoadPlaylistFileInfo(PlaylistInfo &info, const auto *const name_fs_end = FindStringSuffix(name_fs_str, PATH_LITERAL(PLAYLIST_FILE_SUFFIX)); - if (name_fs_end == nullptr) + if (name_fs_end == nullptr || + /* no empty playlist names (raw file name = ".m3u") */ + name_fs_end == name_fs_str) return false; FileInfo fi;