diff options
author | Max Kellermann <max@duempel.org> | 2010-12-23 16:24:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:25:22 +0100 |
commit | d849a40af67631528ac50d00e9e43143bcdb6221 (patch) | |
tree | 95868abdc29e7cd7f974abc763945462417e9dfd /src | |
parent | 4f48c10312a2e9388ca41a331787fccf262ffa4e (diff) | |
download | mpd-d849a40af67631528ac50d00e9e43143bcdb6221.tar.gz mpd-d849a40af67631528ac50d00e9e43143bcdb6221.tar.xz mpd-d849a40af67631528ac50d00e9e43143bcdb6221.zip |
stored_playlist: ignore empty lines
Diffstat (limited to '')
-rw-r--r-- | src/stored_playlist.c | 2 |
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)) { |