mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Ignore empty lines in M3U playlists
This commit is contained in:
parent
cc75bd6eef
commit
4aa207533e
@ -156,7 +156,7 @@ scan_m3u_playlist(char *file)
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((buf[0] == ';') || (buf[0] == '#'))
|
||||
if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
||||
continue;
|
||||
|
||||
while (isspace(buf[len - 1]))
|
||||
|
Loading…
Reference in New Issue
Block a user