From 1071524ae7b482d90d394cb8d9f13104f0eefedb Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Mon, 8 May 2006 08:34:14 +0000 Subject: Fix for bug 483 git-svn-id: https://svn.musicpd.org/mpd/trunk@4138 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/song.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3