ref: 7f697e822b2efd5c757141720469d105a5605ca4
parent: 1210b12f28ac23a2f0af6004a49d7c82a8f236ca
author: Ori Bernstein <[email protected]>
date: Tue Jun 15 20:28:01 EDT 2021
lex: fix uninitialized fds (thanks きゐ)
--- a/sys/src/cmd/lex/header.c
+++ b/sys/src/cmd/lex/header.c
@@ -43,6 +43,8 @@
if(nine) {
Bprint(&fout,
"int infd, outfd;\n"
+ "outfd = 1;\n"
+ "infd = 0;\n"
"\n"
"void\n"
"output(char c)\n"