mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
string.c: use str_duplicate
* string.c (rb_str_resurrect): use str_duplicate(), which does completely same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16095eb187
commit
3d3a0d88c9
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -1006,7 +1006,7 @@ rb_str_resurrect(VALUE str)
|
|||
RUBY_DTRACE_STRING_CREATE(RSTRING_LEN(str),
|
||||
rb_sourcefile(), rb_sourceline());
|
||||
}
|
||||
return str_replace(str_alloc(rb_cString), str);
|
||||
return str_duplicate(rb_cString, str);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue