diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 04:10:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 04:10:24 +0000 |
| commit | 21a07ed5534ac529afee4f547df1daad4eaf9f33 (patch) | |
| tree | 15b670a25e4d1e1005ee4e8f8ddd165b39610931 /include/ruby | |
| parent | d958529cd2162f1dfc2d08c5a92b6948ab2de92a (diff) | |
| download | ruby-21a07ed5534ac529afee4f547df1daad4eaf9f33.tar.gz ruby-21a07ed5534ac529afee4f547df1daad4eaf9f33.tar.xz ruby-21a07ed5534ac529afee4f547df1daad4eaf9f33.zip | |
* include/ruby/io.h (MakeOpenFile): fptr->enc should be
intialized to zero. [ruby-dev:32569]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index c2e0eaa2f..511159293 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -90,6 +90,7 @@ typedef struct rb_io_t { fp->rbuf_len = 0;\ fp->rbuf_capa = 0;\ fp->tied_io_for_writing = 0;\ + fp->enc = 0;\ } while (0) FILE *rb_io_stdio_file(rb_io_t *fptr); |
