summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index b24b671bb2..d2b9cc4ca5 100644
--- a/file.c
+++ b/file.c
@@ -2915,6 +2915,8 @@ rb_file_s_rename(VALUE klass, VALUE from, VALUE to)
RUBY_UBF_IO, 0) < 0) {
int e = errno;
#if defined DOSISH
+ const char *src = StringValueCStr(f);
+ const char *dst = StringValueCStr(t);
switch (e) {
case EEXIST:
if (chmod(dst, 0666) == 0 &&