summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-22 22:46:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-22 22:46:57 +0000
commit4f160fa041502845423ef140a1899fbdece06ffb (patch)
treeb22b1a556ae73ca6a6ec8335edbbd38ee3ac501b
parentf5063b7ea7e774519602f7a112d9acf536a1da33 (diff)
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
-rw-r--r--ChangeLog5
-rw-r--r--io.c2
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 <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.
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