[http] Fix crash with URLs without any "." chars in the path (issue #311, @credit acmay)

This commit is contained in:
ejurgensen 2016-11-17 19:24:55 +01:00
parent fb808bd36a
commit 8525c278ec
1 changed files with 1 additions and 1 deletions

View File

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