webui: avoid NULL dereference for /play url if remain is NULL

This commit is contained in:
Jaroslav Kysela 2014-07-01 09:22:13 +02:00
parent 3414ff74ba
commit fceda8d798

View file

@ -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)