aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-05-08 08:34:14 +0000
committerQball Cow <qball@qballcow.nl>2006-05-08 08:34:14 +0000
commit1071524ae7b482d90d394cb8d9f13104f0eefedb (patch)
tree07b4045c99f29778832360b4527f6816ee214583 /src
parent151d9706e979ff8a511d853c71a29c7896d675bf (diff)
downloadmpd-1071524ae7b482d90d394cb8d9f13104f0eefedb.tar.gz
mpd-1071524ae7b482d90d394cb8d9f13104f0eefedb.tar.xz
mpd-1071524ae7b482d90d394cb8d9f13104f0eefedb.zip
Fix for bug 483
git-svn-id: https://svn.musicpd.org/mpd/trunk@4138 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/song.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 07a7e04fb..d1ae976ea 100644
--- a/src/song.c
+++ b/src/song.c
@@ -260,7 +260,8 @@ void readSongInfoIntoList(FILE * fp, SongList * list, Directory * parentDir) {
else if(0==strncmp(SONG_MTIME,buffer,strlen(SONG_MTIME))) {
song->mtime = atoi(&(buffer[strlen(SONG_MTIME)]));
}
- else {
+ /* ignore empty lines (starting with '\0') */
+ else if(*buffer){
ERROR("songinfo: unknown line in db: %s\n",buffer);
exit(EXIT_FAILURE);
}