diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-13 14:31:59 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-13 14:31:59 +0100 |
commit | 0d1d0f6e54e1980462c9d07c8b94e56cf13cbf08 (patch) | |
tree | 8ae7cbb45eba5a3fb6a86707b1121cb42d823826 | |
parent | 0b90de15375b643d2b21695fae3e46908e1effa6 (diff) | |
download | busybox-w32-0d1d0f6e54e1980462c9d07c8b94e56cf13cbf08.tar.gz busybox-w32-0d1d0f6e54e1980462c9d07c8b94e56cf13cbf08.tar.bz2 busybox-w32-0d1d0f6e54e1980462c9d07c8b94e56cf13cbf08.zip |
more: smaller version of previous fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | util-linux/more.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index ecac92821..c424a0e4b 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -191,9 +191,7 @@ int more_main(int argc UNUSED_PARAM, char **argv) | |||
191 | } | 191 | } |
192 | /* My small mind cannot fathom backspaces and UTF-8 */ | 192 | /* My small mind cannot fathom backspaces and UTF-8 */ |
193 | putchar(c); | 193 | putchar(c); |
194 | 194 | die_if_ferror_stdout(); /* if tty was destroyed (closed xterm, etc) */ | |
195 | if (ferror(stdout)) /* if tty was destroyed (closed xterm, etc) */ | ||
196 | goto end; | ||
197 | } | 195 | } |
198 | fclose(file); | 196 | fclose(file); |
199 | fflush_all(); | 197 | fflush_all(); |