aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:11 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:11 +0200
commitdf251a9960c2ced5f3ac06b57de3b789c189df03 (patch)
tree844825a529017e0cd5950bd385faf1363b27f385 /src/song.c
parente99333167e152dcdd3b40ae812f920eb5023543a (diff)
downloadmpd-df251a9960c2ced5f3ac06b57de3b789c189df03.tar.gz
mpd-df251a9960c2ced5f3ac06b57de3b789c189df03.tar.xz
mpd-df251a9960c2ced5f3ac06b57de3b789c189df03.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 1149da8bb..718c358e8 100644
--- a/src/song.c
+++ b/src/song.c
@@ -316,6 +316,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