diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-29 12:17:07 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-29 12:17:07 +0000 |
commit | ac8f4a4d38a82e3b8f574b1542dc71a9c6c84628 (patch) | |
tree | 2c2c5a49f037670329e9247a49dd3da457d4feee /ext | |
parent | d5a784ae22751c9ffe5063531c9ad2355325e6aa (diff) |
merge from trunk (r28477)
* ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/stringio/stringio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index a554e7187a..c93ba10466 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -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); |