diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Jan 7 15:40:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (singleton): get rid of segfault on syntax error. + fixed: [ruby-core:07070] + Sat Jan 7 06:24:18 2006 Tanaka Akira <akr@m17n.org> * eval.c (rb_fd_isset): compare the result of FD_ISSET with 0 to @@ -4246,7 +4246,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 { |