diff options
| author | katsu <katsu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-20 02:06:15 +0000 |
|---|---|---|
| committer | katsu <katsu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-20 02:06:15 +0000 |
| commit | 704687059a52a6be0fe1c925aea6d0a412a61401 (patch) | |
| tree | 73c090ade7815a79a0fdbcff80d971a190ec292d /ext/zlib | |
| parent | 6e6ca326e8d0a46bc3a5b45a78a09b932b861657 (diff) | |
| download | ruby-704687059a52a6be0fe1c925aea6d0a412a61401.tar.gz ruby-704687059a52a6be0fe1c925aea6d0a412a61401.tar.xz ruby-704687059a52a6be0fe1c925aea6d0a412a61401.zip | |
* ext/zlib/zlib.c (gzfile_read_header): gz->z.input may be nil after finishing reading a gzip header.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
| -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 24f226843..e1aebe446 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1697,7 +1697,7 @@ gzfile_read_header(gz) zstream_discard_input(&gz->z, len + 1); } - if (RSTRING(gz->z.input)->len > 0) { + if (gz->z.input != Qnil && RSTRING(gz->z.input)->len > 0) { zstream_run(&gz->z, 0, 0, Z_SYNC_FLUSH); } } |
