mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
835da2f07b
commit
952b1bf355
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 29 21:11:15 2010 Masaya Tarui <tarui@ruby-lnag.org>
|
||||
|
||||
* ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
|
||||
|
||||
|
||||
Tue Jun 29 19:39:59 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* test/win32ole/test_win32ole_method.rb (is_ruby64): check
|
||||
|
|
|
@ -1107,6 +1107,7 @@ strio_write(VALUE self, VALUE str)
|
|||
long len, olen;
|
||||
rb_encoding *enc, *enc2;
|
||||
|
||||
RB_GC_GUARD(str);
|
||||
if (TYPE(str) != T_STRING)
|
||||
str = rb_obj_as_string(str);
|
||||
enc = rb_enc_get(ptr->string);
|
||||
|
|
Loading…
Reference in a new issue