summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 10:30:40 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 10:30:40 +0000
commite93600334e4f8a9d259cc5868c9b58e71d808f39 (patch)
tree6ed24793648027bd1de38ac40607dece877070bc /ext
parent6c721bd44f0d6818c2df361485ebdc49c75ca913 (diff)
zlib: remove redundant rb_obj_reveal
No need to reveal strings freshly created with rb_str_new. * ext/zlib/zlib.c (zstream_detach_input): remove redundant call git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/zlib/zlib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 4cae484937..7906e0fba3 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -882,7 +882,6 @@ zstream_detach_input(struct zstream *z)
rb_obj_reveal(dst, rb_cString);
}
z->input = Qnil;
- rb_obj_reveal(dst, rb_cString);
return dst;
}