From 4be0eb95cf92f40d68918b8f7f50e7367bff4aec Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 5 Jan 2008 04:04:26 +0000 Subject: * ruby.c (proc_options): no need for intermediate object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ruby.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b4c6d37c9..6867eab7ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Jan 5 13:04:24 2008 Nobuyoshi Nakada + + * ruby.c (proc_options): no need for intermediate object. + Sat Jan 5 11:48:19 2008 Tanaka Akira * encoding.c (Init_Encoding): alias csWindows31J to Windows-31J. diff --git a/ruby.c b/ruby.c index 0fabd217da..3dae60226d 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; -- cgit v1.2.3