webui: avoid NULL dereference for /play url if remain is NULL
This commit is contained in:
parent
3414ff74ba
commit
fceda8d798
1 changed files with 3 additions and 0 deletions
|
@ -1030,6 +1030,9 @@ page_play(http_connection_t *hc, const char *remain, void *opaque)
|
|||
{
|
||||
char *playlist;
|
||||
|
||||
if(remain == NULL)
|
||||
return 404;
|
||||
|
||||
playlist = http_arg_get(&hc->hc_req_args, "playlist");
|
||||
if (playlist) {
|
||||
if (strcmp(playlist, "xspf") == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue