Issue #23708: Fix _Py_read() compilation error on Windows

Fix typo: self->fd => fd
This commit is contained in:
Victor Stinner 2015-03-19 23:53:04 +01:00
parent c9382eb7ae
commit c1cf4f7ef9

View file

@ -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;