'more | cat' was producing spurious output from an unused buffer

This commit is contained in:
Adam David 1996-01-22 01:30:03 +00:00
parent 425bed3abf
commit bb012025b4

View file

@ -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);