summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index 97831e569a9..c3fb9b22778 100644
--- a/string.c
+++ b/string.c
@@ -2012,8 +2012,9 @@ str_fill_term(VALUE str, char *s, long len, int termlen)
}
else {
TERM_FILL(s + len, termlen);
+ return s;
}
- return s;
+ return RSTRING_PTR(str);
}
char *