mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
Protect shuffle against empty player playlist
This commit is contained in:
parent
36f0d0a76e
commit
682e495ed0
@ -486,6 +486,9 @@ source_shuffle(struct player_source *head)
|
||||
int nitems;
|
||||
int i;
|
||||
|
||||
if (!head)
|
||||
return NULL;
|
||||
|
||||
ps = head;
|
||||
nitems = 0;
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user