From 83adc590c89c657e36da23b828f45ed7a881ec7a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 13:27:33 +0200 Subject: [PATCH] lyrics: missing "break" If get_text_line() fails, we should break from the loop. --- src/screen_lyrics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index eb7035a..99487da 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); } -- 2.30.2