diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-03 20:34:58 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-03 20:34:58 +0000 |
| commit | 652c48e2aa9b4a2b859d26badbbc11d6cd075336 (patch) | |
| tree | 53999c68778606db15e910566e2cd1e96a177bd4 /io.c | |
| parent | d3c28a3b6a597195b05b9375b9110b85a5d0d241 (diff) | |
| download | ruby-652c48e2aa9b4a2b859d26badbbc11d6cd075336.tar.gz ruby-652c48e2aa9b4a2b859d26badbbc11d6cd075336.tar.xz ruby-652c48e2aa9b4a2b859d26badbbc11d6cd075336.zip | |
* io.c (open_key_args): use rb_io_open instead of rb_f_open.
[ruby-core:15746]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -5932,11 +5932,7 @@ open_key_args(int argc, VALUE *argv, struct foreach_arg *arg) } v = rb_hash_aref(opt, mode); if (!NIL_P(v)) { - VALUE args[2]; - - args[0] = argv[0]; - args[1] = v; - arg->io = rb_f_open(2, args); + arg->io = rb_io_open(RSTRING_PTR(argv[0]), StringValueCStr(v)); } if (!arg->io) { |
