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

parent ed2bc5d4
...@@ -3664,8 +3664,10 @@ void_expr_error(parser_state *p, node *n) ...@@ -3664,8 +3664,10 @@ void_expr_error(parser_state *p, node *n)
break; break;
case NODE_AND: case NODE_AND:
case NODE_OR: case NODE_OR:
void_expr_error(p, n->cdr->car); if (n->cdr) {
void_expr_error(p, n->cdr->cdr); void_expr_error(p, n->cdr->car);
void_expr_error(p, n->cdr->cdr);
}
break; break;
case NODE_BEGIN: case NODE_BEGIN:
if (n->cdr) { if (n->cdr) {
......
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