summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-24 04:42:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-24 04:42:07 +0000
commit3b0fec9a5f966fd7ae26bc7b84877fa7209d8605 (patch)
tree48fbc4b02d73ca0f173ed87e288ee406e0913b97 /ruby.c
parent0d30af8fd2bcfea8cf5dbf87b623c57960ce81bc (diff)
1.1c1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index eb75630..d39830d 100644
--- a/ruby.c
+++ b/ruby.c
@@ -580,7 +580,7 @@ load_file(fname, script)
if (script) {
rb_define_global_const("DATA", f);
}
- if (f != rb_stdin) {
+ else if (f != rb_stdin) {
io_close(f);
}
}