summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-02 10:03:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-02 10:03:54 +0000
commitb6fe3dae4de7002c2f58bc9cfb993033dff7927d (patch)
treeb017b82c48b45ae98f3ed92acb3863372ed9d77f /re.c
parenta1d8147e4419d81cd93c664b85f7062c89101c87 (diff)
call initialize
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/re.c b/re.c
index b69f74ae9a..b34e5e6fc5 100644
--- a/re.c
+++ b/re.c
@@ -659,6 +659,7 @@ reg_new_1(klass, s, len, flag)
memcpy(re->str, s, len);
re->str[len] = '\0';
re->len = len;
+ obj_call_init((VALUE)re);
return (VALUE)re;
}
@@ -795,7 +796,7 @@ reg_s_new(argc, argv, self)
Check_Type(src, T_STRING);
}
- return Qnil;
+ return Qnil; /* not reached */
}
static VALUE