summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 85f054b..097a4c7 100644
--- a/parse.y
+++ b/parse.y
@@ -5717,7 +5717,7 @@ top_local_setup()
rb_mem_clear(vars+i, len-i);
}
else {
- *vars++ = 0;
+ *vars++ = (VALUE)ruby_scope;
rb_mem_clear(vars, len);
}
ruby_scope->local_vars = vars;
@@ -5732,7 +5732,6 @@ top_local_setup()
if (ruby_scope->local_tbl && ruby_scope->local_vars[-1] == 0) {
xfree(ruby_scope->local_tbl);
}
- ruby_scope->local_vars[-1] = 0;
ruby_scope->local_tbl = local_tbl();
}
}