From c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 19 Mar 2015 23:53:04 +0100 Subject: [PATCH] Issue #23708: Fix _Py_read() compilation error on Windows Fix typo: self->fd => fd --- Python/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/fileutils.c b/Python/fileutils.c index 0948781a62b..702e25df619 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;