summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
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 0fc91b0d50..bd2039822c 100644
--- a/parse.y
+++ b/parse.y
@@ -2377,7 +2377,7 @@ opt_f_block_arg : ',' f_block_arg
singleton : var_ref
{
- if (nd_type($1) == NODE_SELF) {
+ if ($1 && nd_type($1) == NODE_SELF) {
$$ = NEW_SELF();
}
else {