aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-03-26 10:37:58 +0000
committerEric Wong <normalperson@yhbt.net>2008-03-26 10:37:58 +0000
commit0692f6cd0ab12e921d1897de215fb42d6dc79a7c (patch)
tree4d069458026d949893e54b673228fe616993ae0f
parentc0787cc9843b8cb72f18451d20dfebdd02b59a2b (diff)
downloadmpd-0692f6cd0ab12e921d1897de215fb42d6dc79a7c.tar.gz
mpd-0692f6cd0ab12e921d1897de215fb42d6dc79a7c.tar.xz
mpd-0692f6cd0ab12e921d1897de215fb42d6dc79a7c.zip
player: more assertions
Just one more assertion. There should be more of that! git-svn-id: https://svn.musicpd.org/mpd/trunk@7204 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/player.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 97d6e4e95..3312a23e1 100644
--- a/src/player.c
+++ b/src/player.c
@@ -439,6 +439,8 @@ int playerSeek(int fd, Song * song, float seek_time)
PlayerControl *pc = &(getPlayerData()->playerControl);
char path_max_tmp[MPD_PATH_MAX];
+ assert(song != NULL);
+
if (pc->state == PLAYER_STATE_STOP) {
commandError(fd, ACK_ERROR_PLAYER_SYNC,
"player not currently playing");