From: Max Kellermann Date: Mon, 15 Sep 2008 11:27:33 +0000 (+0200) Subject: lyrics: missing "break" X-Git-Tag: v0.12_alpha1~309 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83adc590c89c657e36da23b828f45ed7a881ec7a;p=ncmpc.git lyrics: missing "break" If get_text_line() fails, we should break from the loop. --- 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); }