parse.y: check `car` part of return node.

parent 0b095406
...@@ -1274,6 +1274,7 @@ ret_args(parser_state *p, node *n) ...@@ -1274,6 +1274,7 @@ ret_args(parser_state *p, node *n)
yyerror(p, "block argument should not be given"); yyerror(p, "block argument should not be given");
return NULL; return NULL;
} }
if (!n->car) return NULL;
if (!n->car->cdr) return n->car->car; if (!n->car->cdr) return n->car->car;
return new_array(p, n->car); return new_array(p, n->car);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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