From 12d55847213bc4aef837b163ceb0adea8a4d1348 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 28 Nov 2019 06:59:53 +0100 Subject: [PATCH] Fix for() loop; "statement with no effect" warning from GCC Signed-off-by: Joachim Nilsson --- src/editline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editline.c b/src/editline.c index 5c3faed..41aec64 100644 --- a/src/editline.c +++ b/src/editline.c @@ -358,7 +358,7 @@ static void reposition(int key) tty_puts(rl_prompt); } - for (i; i < rl_point; i++) { + for (; i < rl_point; i++) { tty_show(rl_line_buffer[i]); /* move to the next line */