summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-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");