Don't process lines beginning with non-alphanumerical chars, since

they might mess things up.
This commit is contained in:
ejurgensen 2013-08-27 22:20:26 +02:00
parent fe79922c6e
commit f4cc74e7fb

View File

@ -137,7 +137,7 @@ scan_m3u_playlist(char *file, time_t mtime)
continue;
}
if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
if ((!isalnum(buf[0])) || (buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
continue;
while (isspace(buf[len - 1]))