mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
82b088aa0c
commit
fb506c3000
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Feb 7 18:57:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
|
||||||
|
|
||||||
Thu Feb 7 16:33:51 2008 Tanaka Akira <akr@fsij.org>
|
Thu Feb 7 16:33:51 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* io.c (io_reopen): don't change access mode for stdin, stdout and
|
* io.c (io_reopen): don't change access mode for stdin, stdout and
|
||||||
|
|
4
string.c
4
string.c
|
@ -564,7 +564,9 @@ static VALUE rb_str_replace(VALUE, VALUE);
|
||||||
VALUE
|
VALUE
|
||||||
rb_str_dup(VALUE str)
|
rb_str_dup(VALUE str)
|
||||||
{
|
{
|
||||||
return rb_str_new3(str);
|
VALUE dup = str_alloc(rb_obj_class(str));
|
||||||
|
rb_str_replace(dup, str);
|
||||||
|
return dup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue