aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);
}