aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 3a273da94e..39ac6f6f60 100644
--- a/parse.y
+++ b/parse.y
@@ -1507,7 +1507,11 @@ rescue : kRESCUE exc_list exc_var then
ensure : none
| kENSURE compstmt
{
- $$ = $2;
+ if ($2)
+ $$ = $2;
+ else
+ /* place holder */
+ $$ = NEW_NIL();
}
literal : numeric