playlist_song: fix NULL pointer dereference

This commit is contained in:
Max Kellermann
2011-05-09 18:03:45 +02:00
parent 246db3d565
commit 9402b23dd5
2 changed files with 2 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ playlist_check_translate_song(struct song *song, const char *base_uri)
else
uri = g_strdup(uri);
if (uri_has_scheme(base_uri)) {
if (uri_has_scheme(uri)) {
dest = song_remote_new(uri);
g_free(uri);
} else {