Add null check on lex_strterm in heredoc block

This commit is contained in:
Carson McDonald
2015-05-23 11:10:10 -04:00
parent b97c6d10a2
commit 4a791701bc
+3 -1
View File
@@ -4150,7 +4150,9 @@ parser_yylex(parser_state *p)
p->lineno++;
p->column = 0;
if (p->parsing_heredoc != NULL) {
return parse_string(p);
if (p->lex_strterm) {
return parse_string(p);
}
}
goto retry;
default: