[http] Fix crash with URLs without any "." chars in the path (issue #311, @credit acmay)
This commit is contained in:
parent
fb808bd36a
commit
8525c278ec
|
@ -282,7 +282,7 @@ http_stream_setup(char **stream, const char *url)
|
|||
*stream = NULL;
|
||||
|
||||
ext = strrchr(url, '.');
|
||||
if (strcasecmp(ext, ".m3u") != 0)
|
||||
if (!ext || (strcasecmp(ext, ".m3u") != 0))
|
||||
{
|
||||
*stream = strdup(url);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue