diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-04 02:30:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-04 02:30:26 +0000 |
commit | 8c0b2a286080609613b6b007e030ff7c7adaa23c (patch) | |
tree | bcfd094c544529c41e297c3c85beadfda5393be8 /test/runner.rb | |
parent | 34c83a37c23d847213f2432021624c2d7610c14a (diff) |
string.c: check before modify
* string.c (rb_str_setbyte): check the argument first not to
discard shared string and code range unnecessarily until
actually changing the contents. pointed out by headius.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
0 files changed, 0 insertions, 0 deletions