aboutsummaryrefslogtreecommitdiffstats
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/zlib.c')
-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 288b13b728..8f23bcff21 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -2202,7 +2202,7 @@ gzfile_read_all(struct gzfile *gz)
dst = zstream_detach_buffer(&gz->z);
gzfile_calc_crc(gz, dst);
OBJ_TAINT(dst);
- return dst;
+ return gzfile_newstr(gz, dst);
}
static VALUE