summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-06 08:25:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-06 08:25:12 +0000
commite2b92403d5fdb91ed3c7eb26a693c82a4cf4b046 (patch)
tree4500e3bcab21330db6d18bb65f41c32a118a446e /re.c
parentda19d16b1c5efa1b2d9076e245ababc5ec9ad2dd (diff)
* re.c (rb_reg_initialize_m): 3rd argument was ignored.
* string.c (rb_str_count): return 0 for empty string (was returning nil). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 830a227..b837da8 100644
--- a/re.c
+++ b/re.c
@@ -1265,7 +1265,7 @@ rb_reg_initialize_m(argc, argv, self)
if (FIXNUM_P(argv[1])) flags = FIX2INT(argv[1]);
else if (RTEST(argv[1])) flags = RE_OPTION_IGNORECASE;
}
- else if (argc == 3) {
+ if (argc == 3) {
char *kcode = StringValuePtr(argv[2]);
switch (kcode[0]) {