diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-07 09:57:06 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-07 09:57:06 +0000 |
| commit | 2b19e63b0c1bc83f21a311db1554b60b496ab566 (patch) | |
| tree | d34e9e6ee7f93f657dd3ec9a8726378de78175a1 | |
| parent | 001dadd271817e150d887e0a54059ddc95d0574b (diff) | |
| download | ruby-2b19e63b0c1bc83f21a311db1554b60b496ab566.tar.gz ruby-2b19e63b0c1bc83f21a311db1554b60b496ab566.tar.xz ruby-2b19e63b0c1bc83f21a311db1554b60b496ab566.zip | |
* string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | string.c | 4 |
2 files changed, 7 insertions, 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> * io.c (io_reopen): don't change access mode for stdin, stdout and @@ -564,7 +564,9 @@ static VALUE rb_str_replace(VALUE, VALUE); VALUE 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; } |
