Add NULL pointer check before void_expr_error(); fix #4192

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-21 09:35:10 +09:00
parent ed2bc5d4ed
commit 94b73b1440
+4 -2
View File
@@ -3664,8 +3664,10 @@ void_expr_error(parser_state *p, node *n)
break;
case NODE_AND:
case NODE_OR:
void_expr_error(p, n->cdr->car);
void_expr_error(p, n->cdr->cdr);
if (n->cdr) {
void_expr_error(p, n->cdr->car);
void_expr_error(p, n->cdr->cdr);
}
break;
case NODE_BEGIN:
if (n->cdr) {