stored_playlist: ignore empty lines
This commit is contained in:
parent
4f48c10312
commit
d849a40af6
@ -199,7 +199,7 @@ spl_load(const char *utf8path)
|
|||||||
GString *buffer = g_string_sized_new(1024);
|
GString *buffer = g_string_sized_new(1024);
|
||||||
char *s;
|
char *s;
|
||||||
while ((s = read_text_line(file, buffer)) != NULL) {
|
while ((s = read_text_line(file, buffer)) != NULL) {
|
||||||
if (*s == PLAYLIST_COMMENT)
|
if (*s == 0 || *s == PLAYLIST_COMMENT)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!uri_has_scheme(s)) {
|
if (!uri_has_scheme(s)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user