We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e98e4c commit ee5c807Copy full SHA for ee5c807
ext/zlib/zlib.c
@@ -4277,13 +4277,19 @@ rb_gzreader_external_encoding(VALUE self)
4277
}
4278
4279
static VALUE
4280
-zlib_gzip_ensure(VALUE arg)
+zlib_gzip_end_rescue(VALUE arg)
4281
{
4282
struct gzfile *gz = (struct gzfile *)arg;
4283
- rb_rescue((VALUE(*)())gz->end, arg, NULL, Qnil);
+ gz->end(gz);
4284
return Qnil;
4285
4286
4287
+static VALUE
4288
+zlib_gzip_ensure(VALUE arg)
4289
+{
4290
+ return rb_rescue(zlib_gzip_end_rescue, arg, NULL, Qnil);
4291
+}
4292
+
4293
static void
4294
zlib_gzip_end(struct gzfile *gz)
4295
0 commit comments