зеркало из https://github.com/github/ruby.git
* ext/syck/rubyext.c (yaml_org_handler): some empty strings were
loaded as symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
63719ed2e8
Коммит
25aa9e6969
|
@ -1,3 +1,8 @@
|
|||
Thu May 13 14:17:57 2004 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* ext/syck/rubyext.c (yaml_org_handler): some empty strings were
|
||||
loaded as symbols.
|
||||
|
||||
Thu May 13 11:04:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* pack.c (pack_pack): always add with null for 'Z'.
|
||||
|
|
|
@ -558,7 +558,7 @@ yaml_org_handler( n, ref )
|
|||
{
|
||||
obj = rb_funcall( cDefaultKey, s_new, 0 );
|
||||
}
|
||||
else if ( strncmp( n->data.str->ptr, ":", 1 ) == 0 )
|
||||
else if ( n->data.str->len > 1 && strncmp( n->data.str->ptr, ":", 1 ) == 0 )
|
||||
{
|
||||
obj = rb_funcall( oDefaultLoader, s_transfer, 2,
|
||||
rb_str_new2( "ruby/sym" ),
|
||||
|
|
Загрузка…
Ссылка в новой задаче