summaryrefslogtreecommitdiff
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 4f78b81..3fe8150 100644
--- a/file.c
+++ b/file.c
@@ -97,7 +97,7 @@ rb_file_path(obj)
{
OpenFile *fptr;
- GetOpenFile(obj, fptr);
+ fptr = RFILE(rb_io_taint_check(obj))->fptr;
if (!fptr->path) return Qnil;
return rb_str_new2(fptr->path);
}