diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-17 09:02:40 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-17 09:02:40 +0000 |
commit | 67232b21511423f82ab18db04f941e6925338a7b (patch) | |
tree | 922299c561755f4a987420495fbf1392ef7ea1cc /marshal.c | |
parent | 4af25f5813cd98baa93c459c49718ef62882913a (diff) | |
download | ruby-67232b21511423f82ab18db04f941e6925338a7b.tar.gz |
* io.c (rb_io_reopen): should clear allocated OpenFile. pointed
out by Guy Decoux. [ruby-core:03288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -871,6 +871,7 @@ r_bytes0(len, arg) { VALUE str; + if (len == 0) return rb_str_new(0, 0); if (!arg->end) { VALUE src = (VALUE)arg->ptr; VALUE n = LONG2NUM(len); |