From 0692f6cd0ab12e921d1897de215fb42d6dc79a7c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Mar 2008 10:37:58 +0000 Subject: 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 --- src/player.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/player.c') 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"); -- cgit v1.2.3