void_expr_error(): n may be NULL.

Reported from @clayton-shopify.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-12-13 11:18:05 +09:00
parent 3bedd22d55
commit d196e4dd04
+1
View File
@@ -3430,6 +3430,7 @@ void_expr_error(parser_state *p, node *n)
{
int c;
if (n == NULL) return;
c = (int)(intptr_t)n->car;
switch (c) {
case NODE_BREAK: