diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-06 09:18:54 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-06 09:18:54 +0000 |
| commit | 733953a72fcd8b3f4e38e6cb288205a4a8930517 (patch) | |
| tree | e8eb56bde600f93ec683186cf3cdbe4630d31513 | |
| parent | 48cf8795014ea2950230eaab5560b8fab15dd083 (diff) | |
| download | ruby-733953a72fcd8b3f4e38e6cb288205a4a8930517.tar.gz ruby-733953a72fcd8b3f4e38e6cb288205a4a8930517.tar.xz ruby-733953a72fcd8b3f4e38e6cb288205a4a8930517.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | io.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1681,11 +1681,7 @@ rb_file_s_open(argc, argv, klass) Check_SafeStr(fname); path = RSTRING(fname)->ptr; - if (RFILE(io)->fptr) { - rb_io_close_m(io); - free(RFILE(io)->fptr); - RFILE(io)->fptr = 0; - } + RFILE(io)->fptr = 0; if (FIXNUM_P(vmode)) { int flags = NUM2INT(vmode); int fmode = NIL_P(perm) ? 0666 : NUM2INT(perm); |
