From df251a9960c2ced5f3ac06b57de3b789c189df03 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:11 +0200 Subject: assert song->url != NULL --- src/player.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/player.c') 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; } -- cgit v1.2.3