diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-19 22:53:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-19 22:53:04 (GMT) |
commit | c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14 (patch) | |
tree | 5a7bbe2417764fb71016b656fef85934855522d4 | |
parent | c9382eb7ae26dd72ad2ee9736584c2ad6d109085 (diff) | |
download | cpython-c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14.zip cpython-c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14.tar.gz cpython-c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14.tar.bz2 |
Issue #23708: Fix _Py_read() compilation error on Windows
Fix typo: self->fd => fd
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 0948781..702e25d 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1144,7 +1144,7 @@ _Py_read(int fd, void *buf, size_t count) * handler raised an exception. */ assert(!PyErr_Occurred()); - if (!_PyVerify_fd(self->fd)) { + if (!_PyVerify_fd(fd)) { PyErr_SetFromErrno(PyExc_OSError); assert(errno == EBADF); return -1; |