summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-10-27 15:39:39 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-10-27 15:39:39 +0800
commitc4d12c3f6424e801ccddda8894aad04d24333f82 (patch)
tree2ef8c4f81bdbf28335559073c7f8e7c6d0906e61 /src
parent[BUILTIN] Handle embedded NULs correctly in printf (diff)
downloaddash-c4d12c3f6424e801ccddda8894aad04d24333f82.tar.gz
dash-c4d12c3f6424e801ccddda8894aad04d24333f82.zip
[INPUT] Replace open-coded flushall in preadbuffer
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src')
-rw-r--r--src/input.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c
index 9e533a4..f11ac84 100644
--- a/src/input.c
+++ b/src/input.c
@@ -245,10 +245,7 @@ preadbuffer(void)
 	}
 	if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL))
 		return PEOF;
-	flushout(&output);
-#ifdef FLUSHERR
-	flushout(&errout);
-#endif
+	flushall();
 
 	more = parselleft;
 	if (more <= 0) {
f17c4ef437daf6cd&follow=1'>Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe