Commit 065d2014 authored by Victor Stinner's avatar Victor Stinner

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

Fix typo: self->fd => fd
parent 97d6e4c6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment