summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-10 17:10:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-10 17:10:46 +0000
commitcafd18723e7344a704ed48c410887c2312ac3580 (patch)
tree15c6fe4c535e334f2e5788986cd81c591debb3c4 /string.c
parentce7ab1deee5b7dfe23c8a3d873390b5b7346191d (diff)
downloadruby-cafd18723e7344a704ed48c410887c2312ac3580.tar.gz
ruby-cafd18723e7344a704ed48c410887c2312ac3580.tar.xz
ruby-cafd18723e7344a704ed48c410887c2312ac3580.zip
* string.c (tr_trans): should not turn on modify flag if no
modification happens. [ruby-dev:34631] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/string.c b/string.c
index 1de91ff52..f21baed25 100644
--- a/string.c
+++ b/string.c
@@ -4331,7 +4331,6 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
}
else {
save = -1;
- modify = 1;
c = c0;
}
while (t - buf + tlen >= max) {