diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-07 06:41:24 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-07 06:41:24 +0000 |
| commit | d2e36e841ae78c8a4f52ca7790b36d163ad4bdcf (patch) | |
| tree | 6cd99958bb8ce577bfc0fbfe3ed1342706a46e05 | |
| parent | d99aa273a662a461f632a019f02704e36e35e017 (diff) | |
| download | ruby-d2e36e841ae78c8a4f52ca7790b36d163ad4bdcf.tar.gz ruby-d2e36e841ae78c8a4f52ca7790b36d163ad4bdcf.tar.xz ruby-d2e36e841ae78c8a4f52ca7790b36d163ad4bdcf.zip | |
* parse.y (singleton): get rid of segfault on syntax error.
fixed: [ruby-core:07070]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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 { |
