mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -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 nitems;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!head)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
ps = head;
|
ps = head;
|
||||||
nitems = 0;
|
nitems = 0;
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user