mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[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…
x
Reference in New Issue
Block a user