mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add NULL pointer check before void_expr_error(); fix #4192
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user