diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:11 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-08-30 19:11:37 -0700 |
commit | 6489019322e07411a0c9552644d8ddb62961d0eb (patch) | |
tree | b6a776d23a581a51099fe8175e5a78e26e3e9608 | |
parent | 6fb3490015d6d0c3433e259cb2099d4bb9e58b7f (diff) | |
download | mpd-6489019322e07411a0c9552644d8ddb62961d0eb.tar.gz mpd-6489019322e07411a0c9552644d8ddb62961d0eb.tar.xz mpd-6489019322e07411a0c9552644d8ddb62961d0eb.zip |
assert song->url != NULL
-rw-r--r-- | src/song.c | 3 |
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 |