more: smaller version of previous fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
0b90de1537
commit
0d1d0f6e54
@ -191,9 +191,7 @@ int more_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
}
|
}
|
||||||
/* My small mind cannot fathom backspaces and UTF-8 */
|
/* My small mind cannot fathom backspaces and UTF-8 */
|
||||||
putchar(c);
|
putchar(c);
|
||||||
|
die_if_ferror_stdout(); /* if tty was destroyed (closed xterm, etc) */
|
||||||
if (ferror(stdout)) /* if tty was destroyed (closed xterm, etc) */
|
|
||||||
goto end;
|
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
fflush_all();
|
fflush_all();
|
||||||
|
Loading…
Reference in New Issue
Block a user