summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 17:22:46 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 17:22:46 +0000
commit1887f60a8540f64f5c7bb14d57c0be70506941b8 (patch)
treee581bf6eb1eed03adbdfb0d0f53097ad59477f0d /ext/zlib
parent41557b4774f53ea316d8332db5d9f0891e9847e3 (diff)
* ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
This caused failure when test/csv is executed with GC.stress = true. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index f4abe43469..452f91acf2 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -661,6 +661,7 @@ zstream_append_input(struct zstream *z, const Bytef *src, unsigned int len)
}
#define zstream_append_input2(z,v)\
+ RB_GC_GUARD(v),\
zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v))
static void