diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 06:22:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 06:22:50 +0000 |
commit | 6e3ff2ecd9fdd82295a870e3db1228d5d586413b (patch) | |
tree | 3a7e510e68b9c56cac030b5204a7ae9ed056d973 /io.c | |
parent | ada56ddec728b6c28a97ad2af42b37fbc38dcc78 (diff) | |
download | ruby-6e3ff2ecd9fdd82295a870e3db1228d5d586413b.tar.gz |
io.c: fix local variables
* io.c (io_writev): fix local variable declarations, when
writev(2) is not available. [Feature #9323]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1654,9 +1654,10 @@ static VALUE io_writev(int argc, VALUE *argv, VALUE io) { rb_io_t *fptr; - long n, total; + long n; VALUE str, tmp, total = INT2FIX(0); int nosync; + int i; io = GetWriteIO(io); tmp = rb_io_check_io(io); |