diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-28 13:55:13 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-28 13:55:13 +0000 |
commit | 25f9e2163debb42a17a9f222f11331955e64b6a7 (patch) | |
tree | 09503f43bb2516c05716dc83b2a6a3cd592e4bc9 /ext/zlib/zlib.c | |
parent | ecaf2e46556d8f7a9c7f12d73095def8c02ebcd2 (diff) | |
download | ruby-25f9e2163debb42a17a9f222f11331955e64b6a7.tar.gz ruby-25f9e2163debb42a17a9f222f11331955e64b6a7.tar.xz ruby-25f9e2163debb42a17a9f222f11331955e64b6a7.zip |
* ext/zlib/zlib.c (zstream_run): desperately guard the variable.
[ruby-core:20576]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 30c324167..9c6cf9495 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) { |