Revision
2872
Author
lsansonetti@apple.com
Date
2009-10-20 17:38:16 -0700 (Tue, 20 Oct 2009)

Log Message

fixed a bug in Kernel#open when the given file was opened twice

Modified Paths

Diff

Modified: MacRuby/trunk/io.c (2871 => 2872)


--- MacRuby/trunk/io.c	2009-10-21 00:18:15 UTC (rev 2871)
+++ MacRuby/trunk/io.c	2009-10-21 00:38:16 UTC (rev 2872)
@@ -2296,7 +2296,6 @@
 rb_f_open(VALUE klass, SEL sel, int argc, VALUE *argv)
 {
     VALUE io = rb_class_new_instance(argc, argv, rb_cFile);
-    io = rb_file_open(io, argc, argv);
     if (rb_block_given_p()) {
 	return rb_ensure(f_open_body, io, f_open_ensure, io);
     }