aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_lyrics.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 13:27:33 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 13:27:33 +0200
commit83adc590c89c657e36da23b828f45ed7a881ec7a (patch)
treed7e2db6c2bcaaffa35c49d9a0d4892e906675ac2 /src/screen_lyrics.c
parent6dc4fcca76fc4f3c232acb6d6bfcace5b17e466c (diff)
downloadmpd-83adc590c89c657e36da23b828f45ed7a881ec7a.tar.gz
mpd-83adc590c89c657e36da23b828f45ed7a881ec7a.tar.xz
mpd-83adc590c89c657e36da23b828f45ed7a881ec7a.zip
lyrics: missing "break"
If get_text_line() fails, we should break from the loop.
Diffstat (limited to 'src/screen_lyrics.c')
-rw-r--r--src/screen_lyrics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index eb7035a0b..99487da33 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -89,7 +89,8 @@ static int store_lyr_hd(void)
return -1;
for (i = 3; i <= lyr_text.text->len; i++) {
- if(get_text_line(&lyr_text, i, line_buf, 1024) == -1);
+ if (get_text_line(&lyr_text, i, line_buf, 1024) == -1)
+ break;
fputs(line_buf, lyr_file);
}