summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/file.c b/file.c
index bcce2008a5..628c3e9b8a 100644
--- a/file.c
+++ b/file.c
@@ -2325,8 +2325,7 @@ rb_find_file_ext(filep, ext)
int i, j;
if (f[0] == '~') {
- fname = *filep;
- fname = rb_file_s_expand_path(1, &fname);
+ fname = rb_file_s_expand_path(1, filep);
if (rb_safe_level() >= 2 && OBJ_TAINTED(fname)) {
rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
}