summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-15 09:34:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-15 09:34:34 +0900
commit70132ea1df66c2621c8730f7e61d2c8a049187d4 (patch)
tree503f2df365516ce9f62bf40fea9db87ea54695fa /src/parse.y
parent65e802f769eb324da62541b299e93e87a3b4dbce (diff)
parenta1bcadeb32a840d06cb8009c0051bd1668204197 (diff)
downloadmruby-70132ea1df66c2621c8730f7e61d2c8a049187d4.tar.gz
mruby-70132ea1df66c2621c8730f7e61d2c8a049187d4.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index 73d2d2758..bbad88949 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -857,6 +857,7 @@ ret_args(parser_state *p, node *n)
{
if (n->cdr) {
yyerror(p, "block argument should not be given");
+ return NULL;
}
if (!n->car->cdr) return n->car->car;
return new_array(p, n->car);