aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 94136e7b72..ddaca16b6e 100644
--- a/file.c
+++ b/file.c
@@ -4142,7 +4142,7 @@ rb_find_file_ext(filep, ext)
OBJ_FREEZE(fname);
found = dln_find_file(StringValueCStr(fname), path);
if (found && file_load_ok(found)) {
- *filep = fname;
+ *filep = rb_str_new2(found);
return j+1;
}
}