From 952b1bf355b8fb4f8d05dfef18eb12236c5dc02d Mon Sep 17 00:00:00 2001 From: tarui Date: Tue, 29 Jun 2010 12:12:07 +0000 Subject: * 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 --- ext/stringio/stringio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/stringio') 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); -- cgit v1.2.3