diff options
author | Qball Cow <qball@qballcow.nl> | 2006-05-08 08:34:14 +0000 |
---|---|---|
committer | Qball Cow <qball@qballcow.nl> | 2006-05-08 08:34:14 +0000 |
commit | 1071524ae7b482d90d394cb8d9f13104f0eefedb (patch) | |
tree | 07b4045c99f29778832360b4527f6816ee214583 | |
parent | 151d9706e979ff8a511d853c71a29c7896d675bf (diff) | |
download | mpd-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
-rw-r--r-- | src/song.c | 3 |
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); } |