summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-13 04:38:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-13 04:38:01 +0000
commit35c6e6af5ba2c405a91dc6b9e4af833d0979ed22 (patch)
tree7f54dda0bcda0a58eb5229def03ce3015c98a2b5 /re.c
parent71d408a6c3298b229c0f1d2ff7159ca410a4c612 (diff)
str2cstr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/re.c b/re.c
index d9962cb1f1..d9d89a5476 100644
--- a/re.c
+++ b/re.c
@@ -768,7 +768,6 @@ reg_s_new(argc, argv, self)
if (argc == 3) {
char *kcode = STR2CSTR(argv[2]);
- if (!kcode) TypeError("wrong char-code");
switch (kcode[0]) {
case 'n': case 'N':
flag |= 4;