summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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 e8a87fd2a4..e60088fd88 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