Avoid shadowing a local scratch variable,
This commit is contained in:
parent
16e7e7d4bc
commit
707083753a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152394
@ -397,7 +397,7 @@ void
|
|||||||
flush_line(LINE *l)
|
flush_line(LINE *l)
|
||||||
{
|
{
|
||||||
CHAR *c, *endc;
|
CHAR *c, *endc;
|
||||||
int i, nchars, last_col, this_col;
|
int j, nchars, last_col, this_col;
|
||||||
|
|
||||||
last_col = 0;
|
last_col = 0;
|
||||||
nchars = l->l_line_len;
|
nchars = l->l_line_len;
|
||||||
@ -493,7 +493,7 @@ flush_line(LINE *l)
|
|||||||
}
|
}
|
||||||
PUTC(c->c_char);
|
PUTC(c->c_char);
|
||||||
if ((c + 1) < endc)
|
if ((c + 1) < endc)
|
||||||
for (i = 0; i < c->c_width; i++)
|
for (j = 0; j < c->c_width; j++)
|
||||||
PUTC('\b');
|
PUTC('\b');
|
||||||
if (++c >= endc)
|
if (++c >= endc)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user