Fix SEGV from numbered parameters outside of blocks; fix #4862

parent ef8621cb
...@@ -5952,7 +5952,7 @@ parser_yylex(parser_state *p) ...@@ -5952,7 +5952,7 @@ parser_yylex(parser_state *p)
break; break;
case '_': case '_':
if (toklen(p) == 2 && ISDIGIT(tok(p)[1])) { if (toklen(p) == 2 && ISDIGIT(tok(p)[1]) && p->nvars) {
int n = tok(p)[1] - '0'; int n = tok(p)[1] - '0';
node *nvars = p->nvars->car; node *nvars = p->nvars->car;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment