mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
'more | cat' was producing spurious output from an unused buffer
This commit is contained in:
parent
425bed3abf
commit
bb012025b4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue