summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-05 04:04:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-05 04:04:26 +0000
commitc625f7902998cf60c098f3ea281c6c48bd4b99c8 (patch)
tree7c01378b21d5f680697c0fcc93612ae85d119009 /ruby.c
parent6210d404b10a467827f70dd9c1fc32521e906d86 (diff)
downloadruby-c625f7902998cf60c098f3ea281c6c48bd4b99c8.tar.gz
ruby-c625f7902998cf60c098f3ea281c6c48bd4b99c8.tar.xz
ruby-c625f7902998cf60c098f3ea281c6c48bd4b99c8.zip
* ruby.c (proc_options): no need for intermediate object.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 0fabd217d..3dae60226 100644
--- a/ruby.c
+++ b/ruby.c
@@ -694,7 +694,7 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
case 'F':
if (*++s) {
- rb_fs = rb_reg_new_str(rb_str_new2(s), 0);
+ rb_fs = rb_reg_new(s, strlen(s), 0);
}
break;