diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-01 10:39:01 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-01 10:39:01 +0000 |
| commit | 3b9bcfd40305d2c87b0d3815b15ba95f4cb08dc4 (patch) | |
| tree | 3d22f72262ea003f5c4513e557d2cb43dfe24053 | |
| parent | 9f87ee744cecc7d33806c03812fc11dd967efc0b (diff) | |
| download | ruby-3b9bcfd40305d2c87b0d3815b15ba95f4cb08dc4.tar.gz ruby-3b9bcfd40305d2c87b0d3815b15ba95f4cb08dc4.tar.xz ruby-3b9bcfd40305d2c87b0d3815b15ba95f4cb08dc4.zip | |
* ext/zlib/zlib.c (zstream_run): suppress a warning. a patch from
Charlie Savage at [ruby-core:22607].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/zlib/zlib.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Mar 1 19:38:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/zlib/zlib.c (zstream_run): suppress a warning. a patch from + Charlie Savage at [ruby-core:22607]. + Sun Mar 1 19:36:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * util.c (ruby_dtoa): allocates one more byte to get rid of buffer diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index ffc566197..c7ca55cc1 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -695,7 +695,7 @@ zstream_run(struct zstream *z, Bytef *src, uInt len, int flush) { uInt n; int err; - volatile VALUE guard; + volatile VALUE guard = Qnil; if (NIL_P(z->input) && len == 0) { z->stream.next_in = (Bytef*)""; |
