From 9402b23dd5f75388cb48fdf04ca62033dfc6709a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 9 May 2011 18:03:45 +0200 Subject: [PATCH] playlist_song: fix NULL pointer dereference --- NEWS | 1 + src/playlist_song.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 05b9d86fa..9dab437d0 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ ver 0.16.3 (2011/??/??) * fix assertion failure in audio format mask parser +* fix NULL pointer dereference in playlist parser * decoder: - ffmpeg: support libavcodec 0.7 diff --git a/src/playlist_song.c b/src/playlist_song.c index 1e8e98795..2ad63c913 100644 --- a/src/playlist_song.c +++ b/src/playlist_song.c @@ -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 {