Add missing "$$=NULL;" in error production in parser.

This fixes a crash from a malformed program bug.
This commit is contained in:
Matt Pharr
2011-07-07 11:10:27 +01:00
parent a1d5ea69b9
commit 6b5ee6ccc0
3 changed files with 12 additions and 4 deletions

View File

@@ -927,6 +927,7 @@ statement
std::vector<std::string> alternates = MatchStrings(yytext, builtinTokens);
std::string alts = lGetAlternates(alternates);
Error(@1, "Syntax error--token \"%s\" unknown.%s", yytext, alts.c_str());
$$ = NULL;
}
;