summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-09-16 16:11:25 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-09-16 16:11:25 +0000
commit12494013d2dc8597924e30581fbf55feeb3290a4 (patch)
treeccfb9c01614b3c0dc491a51c273f560a13e4a3a3 /parse.y
parent9e3d9a2a009d2a0281802a84e1c5cc1c887edc71 (diff)
990917
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index b6ad7b596b..1603a0b6d6 100644
--- a/parse.y
+++ b/parse.y
@@ -626,7 +626,9 @@ arg : lhs '=' arg
}
else {
$$ = $<node>3;
- $$->nd_value = call_op(gettable($1), $2, 1, $4);
+ if ($$) {
+ $$->nd_value = call_op(gettable($1),$2,1,$4);
+ }
}
fixpos($$, $4);
}