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)
2471 2471
    }
2472 2472
    if (NIL_P(gz->z.input)) return Qnil;
2473 2473

  
2474
    str = rb_str_dup(gz->z.input);
2474
    str = rb_str_new(NULL, 0);
2475
    rb_str_concat(str, gz->z.input);
2476
    //str = rb_str_dup(gz->z.input);
2475 2477
    OBJ_TAINT(str);  /* for safe */
2476 2478
    return str;
2477 2479
}