Project

General

Profile

Bug #4360 » zlib.c.unused.patch

Stupid patch to fix Zlib::GzipReader#unused - drbrain (Eric Hodel), 02/03/2011 10:31 AM

View differences:

ext/zlib/zlib.c (working copy)
}
if (NIL_P(gz->z.input)) return Qnil;
str = rb_str_dup(gz->z.input);
str = rb_str_new(NULL, 0);
rb_str_concat(str, gz->z.input);
//str = rb_str_dup(gz->z.input);
OBJ_TAINT(str); /* for safe */
return str;
}
(2-2/2)