summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-29 02:30:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-29 02:30:08 +0000
commit91d2e58f1dab1c7ef4a234cdb38935c6719f8fc1 (patch)
tree21d5ce9dc97ee634976c1977fb7db008a9b1182e /parse.y
parent27ce94a366932d35f1f9ee428b86d8985fa6cbea (diff)
* parse.y (ret_args): node may be NULL. [ruby-talk:84530]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 7901bca..75fa33e 100644
--- a/parse.y
+++ b/parse.y
@@ -5366,7 +5366,7 @@ ret_args(node)
if (nd_type(node) == NODE_ARRAY && node->nd_next == 0) {
node = node->nd_head;
}
- if (nd_type(node) == NODE_SPLAT) {
+ if (node && nd_type(node) == NODE_SPLAT) {
node = NEW_SVALUE(node);
}
}