Commit d849a40a authored by Max Kellermann's avatar Max Kellermann

stored_playlist: ignore empty lines

parent 4f48c103
......@@ -199,7 +199,7 @@ spl_load(const char *utf8path)
GString *buffer = g_string_sized_new(1024);
char *s;
while ((s = read_text_line(file, buffer)) != NULL) {
if (*s == PLAYLIST_COMMENT)
if (*s == 0 || *s == PLAYLIST_COMMENT)
continue;
if (!uri_has_scheme(s)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment