summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-28 14:35:40 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-28 14:35:40 +0000
commit0d836d908d15a7f66ab72d44ad264ff721731101 (patch)
treeb466c1fb9209e2fd44054285d09a53d7f39b9fcf /ext
parent33379025f80282e59b4f4aff60190f2951a768db (diff)
merges r21859 from trunk into ruby_1_9_1.
* ext/zlib/zlib.c (zstream_run): desperately guard the variable. [ruby-core:20576] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 30c3241674..9c6cf9495e 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -708,7 +708,7 @@ zstream_run(struct zstream *z, Bytef *src, uInt len, int flush)
/* keep reference to `z->input' so as not to be garbage collected
after zstream_reset_input() and prevent `z->stream.next_in'
from dangling. */
- guard = z->input;
+ RB_GC_GUARD(guard) = z->input;
}
if (z->stream.avail_out == 0) {