diff --git a/src/player.c b/src/player.c index 55e68215..9f1ca269 100644 --- a/src/player.c +++ b/src/player.c @@ -486,6 +486,9 @@ source_shuffle(struct player_source *head) int nitems; int i; + if (!head) + return NULL; + ps = head; nitems = 0; do