mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[scan] Fix access violation if pls line has no '='
This commit is contained in:
parent
251080344e
commit
8248d2fe9f
@ -327,8 +327,8 @@ scan_playlist(const char *file, time_t mtime, int dir_id)
|
||||
|
||||
/* For pls files we are only interested in the part after the FileX= entry */
|
||||
path = NULL;
|
||||
if ((pl_format == PLAYLIST_PLS) && (strncasecmp(buf, "file", strlen("file")) == 0))
|
||||
path = strchr(buf, '=') + 1;
|
||||
if ((pl_format == PLAYLIST_PLS) && (strncasecmp(buf, "file", strlen("file")) == 0) && (path = strchr(buf, '=')))
|
||||
path++;
|
||||
else if (pl_format == PLAYLIST_M3U)
|
||||
path = buf;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user