diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:11 +0200 |
commit | df251a9960c2ced5f3ac06b57de3b789c189df03 (patch) | |
tree | 844825a529017e0cd5950bd385faf1363b27f385 /src/player.c | |
parent | e99333167e152dcdd3b40ae812f920eb5023543a (diff) | |
download | mpd-df251a9960c2ced5f3ac06b57de3b789c189df03.tar.gz mpd-df251a9960c2ced5f3ac06b57de3b789c189df03.tar.xz mpd-df251a9960c2ced5f3ac06b57de3b789c189df03.zip |
assert song->url != NULL
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index c2e84c1bd..9ca4c6b95 100644 --- a/src/player.c +++ b/src/player.c @@ -39,6 +39,9 @@ int playerWait(int fd) static void set_current_song(Song *song) { + assert(song != NULL); + assert(song->url != NULL); + pc.fileTime = song->tag ? song->tag->time : 0; pc.next_song = song; } |