lex: fix uninitialized fds (thanks きゐ)
This commit is contained in:
parent
1210b12f28
commit
7f697e822b
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ phead1(void)
|
||||||
if(nine) {
|
if(nine) {
|
||||||
Bprint(&fout,
|
Bprint(&fout,
|
||||||
"int infd, outfd;\n"
|
"int infd, outfd;\n"
|
||||||
|
"outfd = 1;\n"
|
||||||
|
"infd = 0;\n"
|
||||||
"\n"
|
"\n"
|
||||||
"void\n"
|
"void\n"
|
||||||
"output(char c)\n"
|
"output(char c)\n"
|
||||||
|
|
Loading…
Reference in a new issue