From bb012025b4c5f9488de8fa310737581372af8639 Mon Sep 17 00:00:00 2001 From: Adam David Date: Mon, 22 Jan 1996 01:30:03 +0000 Subject: [PATCH] 'more | cat' was producing spurious output from an unused buffer --- usr.bin/more/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/more/main.c b/usr.bin/more/main.c index 852b1f86cc8..4c2e36b2f35 100644 --- a/usr.bin/more/main.c +++ b/usr.bin/more/main.c @@ -288,7 +288,8 @@ main(argc, argv) */ if (ac < 1) { (void)edit("-"); - cat_file(); + if (file >= 0) + cat_file(); } else { do { (void)edit((char *)NULL);