diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-03 05:20:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-03 05:20:14 +0000 |
commit | 411216201eb3e8c79b9ae29f42b51b03b3e7b1d8 (patch) | |
tree | 324b1dbdf4149be943eb3cbff26ad7f377e53dc0 /io.c | |
parent | 81ba2325bd19cd99c79937cc53a6c19770f62b84 (diff) | |
download | ruby-411216201eb3e8c79b9ae29f42b51b03b3e7b1d8.tar.gz ruby-411216201eb3e8c79b9ae29f42b51b03b3e7b1d8.tar.xz ruby-411216201eb3e8c79b9ae29f42b51b03b3e7b1d8.zip |
* variable.c (rb_copy_generic_ivar): remove old generic instance
variable table if it existes.
* class.c (rb_make_metaclass): metaclass of a metaclass is a
metaclass itself.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -177,6 +177,7 @@ rb_io_taint_check(io) { if (!OBJ_TAINTED(io) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: operation on untainted IO"); + rb_check_frozen(io); return io; } @@ -2270,6 +2271,7 @@ rb_io_become(clone, io) char *mode; io = rb_io_get_io(io); + if (clone == io) return clone; GetOpenFile(io, orig); MakeOpenFile(clone, fptr); |