aboutsummaryrefslogtreecommitdiffstats
path: root/src/stored_playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-23 16:24:37 +0100
committerMax Kellermann <max@duempel.org>2010-12-23 16:25:22 +0100
commitd849a40af67631528ac50d00e9e43143bcdb6221 (patch)
tree95868abdc29e7cd7f974abc763945462417e9dfd /src/stored_playlist.c
parent4f48c10312a2e9388ca41a331787fccf262ffa4e (diff)
downloadmpd-d849a40af67631528ac50d00e9e43143bcdb6221.tar.gz
mpd-d849a40af67631528ac50d00e9e43143bcdb6221.tar.xz
mpd-d849a40af67631528ac50d00e9e43143bcdb6221.zip
stored_playlist: ignore empty lines
Diffstat (limited to '')
-rw-r--r--src/stored_playlist.c2
1 files changed, 1 insertions, 1 deletions
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)) {