diff options
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index d165911a4..49e475ee5 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -46,7 +46,8 @@ playlist_print_song(FILE *file, const struct song *song) const Path uri_fs = Path::FromUTF8(uri); g_free(uri); - fprintf(file, "%s\n", uri_fs.c_str()); + if (!uri_fs.IsNull()) + fprintf(file, "%s\n", uri_fs.c_str()); } } |