From 4f160fa041502845423ef140a1899fbdece06ffb Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 22 Nov 2014 22:46:57 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ io.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f326419c9a..d887a4e0c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 23 07:46:54 2014 Andy Maloney + + * io.c (rb_io_sysread): Remove redundan assignment of 'n'. + [Fix GH-767] + Sat Nov 22 09:48:33 2014 Tanaka Akira * tool/make-snapshot: Specify PWD macro for make. diff --git a/io.c b/io.c index 0d75ee5013..228a2e8129 100644 --- a/io.c +++ b/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