From d849a40af67631528ac50d00e9e43143bcdb6221 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Dec 2010 16:24:37 +0100 Subject: stored_playlist: ignore empty lines --- src/stored_playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stored_playlist.c b/src/stored_playlist.c index e9d157721..36da7c9f7 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -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)) { -- cgit v1.2.3