mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (singleton): get rid of segfault on syntax error.
fixed: [ruby-core:07070] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
199ef57934
commit
b1860ba7dc
2 changed files with 6 additions and 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
|
||||
|
|
2
parse.y
2
parse.y
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue