Fix for() loop; "statement with no effect" warning from GCC

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-28 06:59:53 +01:00
parent 35506cd22e
commit 12d5584721

View File

@ -358,7 +358,7 @@ static void reposition(int key)
tty_puts(rl_prompt); tty_puts(rl_prompt);
} }
for (i; i < rl_point; i++) { for (; i < rl_point; i++) {
tty_show(rl_line_buffer[i]); tty_show(rl_line_buffer[i]);
/* move to the next line */ /* move to the next line */