aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:11 +0200
committerEric Wong <normalperson@yhbt.net>2008-08-30 19:11:37 -0700
commit6489019322e07411a0c9552644d8ddb62961d0eb (patch)
treeb6a776d23a581a51099fe8175e5a78e26e3e9608 /src/song.c
parent6fb3490015d6d0c3433e259cb2099d4bb9e58b7f (diff)
downloadmpd-6489019322e07411a0c9552644d8ddb62961d0eb.tar.gz
mpd-6489019322e07411a0c9552644d8ddb62961d0eb.tar.xz
mpd-6489019322e07411a0c9552644d8ddb62961d0eb.zip
assert song->url != NULL
Diffstat (limited to '')
-rw-r--r--src/song.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index a8ab4284f..cc1547d10 100644
--- a/src/song.c
+++ b/src/song.c
@@ -315,6 +315,9 @@ char *get_song_url(char *path_max_tmp, Song *song)
{
if (!song)
return NULL;
+
+ assert(song->url != NULL);
+
if (!song->parentDir || !song->parentDir->path)
strcpy(path_max_tmp, song->url);
else