shithub: plan9front

Download patch

ref: 7f697e822b2efd5c757141720469d105a5605ca4
parent: 1210b12f28ac23a2f0af6004a49d7c82a8f236ca
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jun 15 20:28:01 EDT 2021

lex: fix uninitialized fds (thanks きゐ)

--- a/sys/src/cmd/lex/header.c	Tue Jun 15 12:13:59 2021
+++ b/sys/src/cmd/lex/header.c	Tue Jun 15 20:28:01 2021
@@ -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"