mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
io.c: remove redundant assignment
* io.c (rb_io_sysread): Remove redundan assignment of 'n'. [Fix GH-767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5063b7ea7
commit
4f160fa041
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Nov 23 07:46:54 2014 Andy Maloney <asmaloney@gmail.com>
|
||||
|
||||
* io.c (rb_io_sysread): Remove redundan assignment of 'n'.
|
||||
[Fix GH-767]
|
||||
|
||||
Sat Nov 22 09:48:33 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/make-snapshot: Specify PWD macro for make.
|
||||
|
|
2
io.c
2
io.c
|
@ -4724,8 +4724,6 @@ rb_io_sysread(int argc, VALUE *argv, VALUE io)
|
|||
rb_raise(rb_eIOError, "sysread for buffered IO");
|
||||
}
|
||||
|
||||
n = fptr->fd;
|
||||
|
||||
/*
|
||||
* FIXME: removing rb_thread_wait_fd() here changes sysread semantics
|
||||
* on non-blocking IOs. However, it's still currently possible
|
||||
|
|
Loading…
Add table
Reference in a new issue