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/branches/ruby_1_8@9803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9f982818d5
commit
8ce7782614
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]
|
||||
|
||||
Sun Jan 1 17:07:59 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* win32/win32.c (rb_w32_seekdir): should not segfault even if passed
|
||||
|
|
2
parse.y
2
parse.y
|
@ -2377,7 +2377,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…
Add table
Add a link
Reference in a new issue