ruby-changes:36457
From: nobu <ko1@a...>
Date: Sun, 23 Nov 2014 07:47:14 +0900 (JST)
Subject: [ruby-changes:36457] nobu:r48538 (trunk): io.c: remove redundant assignment
nobu 2014-11-23 07:46:57 +0900 (Sun, 23 Nov 2014) New Revision: 48538 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48538 Log: io.c: remove redundant assignment * io.c (rb_io_sysread): Remove redundan assignment of 'n'. [Fix GH-767] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 48537) +++ ChangeLog (revision 48538) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 23 07:46:54 2014 Andy Maloney <asmaloney@g...> + + * io.c (rb_io_sysread): Remove redundan assignment of 'n'. + [Fix GH-767] + Sat Nov 22 09:48:33 2014 Tanaka Akira <akr@f...> * tool/make-snapshot: Specify PWD macro for make. Index: io.c =================================================================== --- io.c (revision 48537) +++ io.c (revision 48538) @@ -4724,8 +4724,6 @@ rb_io_sysread(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/io.c#L4724 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/