summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-28 11:05:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-28 11:05:46 +0000
commitd6e2d211afaf7bc3d08a6f833fe8e20f3aa3e3f6 (patch)
tree32d67c633f166665552156bf01fa698be7535336 /string.c
parent7253910df83611f0c2aa4f6c5a5718680b9aea60 (diff)
1.1b9_05 patches
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index e8a87fd2a42..e60088fd888 100644
--- a/string.c
+++ b/string.c
@@ -1824,7 +1824,7 @@ str_tr(str, src, repl)
VALUE val = tr_trans(str_dup(str), src, repl, 0);
if (NIL_P(val)) return str;
- return Qnil;
+ return val;
}
static void