summaryrefslogtreecommitdiff
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 13:26:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 13:26:27 +0000
commit78f7b7036bb6c950a3533a5eb0f2fc9741511efa (patch)
treefa816a2108da7da9fb68f1f209f38cd4be8d5cbc /ext/dl/dl.c
parent19f57ce1443f309c726aef8e5316efde1dfece8e (diff)
* rubyio.h, io.c, ext/dl/dl.c, ext/pty/pty.c, ext/socket/socket.c:
create FILE object only when required: popen(3) and DL's IO#to_ptr. [ruby-dev:25122] * io.c (rb_io_binmode): use setmode for Human68k. [ruby-dev:25121] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 1469ff82a72..d92347158f7 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -542,7 +542,7 @@ rb_io_to_ptr(VALUE self)
FILE *fp;
GetOpenFile(self, fptr);
- fp = fptr->f;
+ fp = rb_io_stdio_file(fptr);
return fp ? rb_dlptr_new(fp, sizeof(FILE), 0) : Qnil;
}