From befb57053670b6b03a4bc46008beddb248a46af1 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 24 Oct 2003 14:31:14 +0000 Subject: * hash.c (rb_hash_each): Hash#each should yield single value. [ruby-talk:84420] * hash.c (env_each): ditto for ENV.each. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 4f78b81aeb..3fe8150065 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); } -- cgit v1.2.3