summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/re.c b/re.c
index 9972ba04d7..06f6502530 100644
--- a/re.c
+++ b/re.c
@@ -1318,9 +1318,6 @@ rb_reg_copy_object(copy, re)
if (!rb_obj_is_instance_of(re, rb_obj_class(copy))) {
rb_raise(rb_eTypeError, "wrong argument type");
}
- RREGEXP(copy)->ptr = 0;
- RREGEXP(copy)->len = 0;
- RREGEXP(copy)->str = 0;
rb_reg_check(re);
rb_reg_initialize(copy, RREGEXP(re)->str, RREGEXP(re)->len,
rb_reg_options(re));