Skip to content

Commit da6d81d

Browse files
author
Nicholas Reed
committed
pass null to parser at eof
1 parent 692c719 commit da6d81d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/express/express.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ PARSERrun(char *filename,FILE *fp)
615615
while ((tokenID = yylex()) > 0) {
616616
Parse(parser, tokenID, yylval);
617617
}
618+
Parse(parser, 0, NULL);
618619

619620
/* want 0 on success, 1 on invalid input, 2 on memory exhaustion */
620621
if (yyerrstatus != 0) {

0 commit comments

Comments
 (0)