From: Victor Stinner Date: Thu, 19 Mar 2015 22:53:04 +0000 (+0100) Subject: Issue #23708: Fix _Py_read() compilation error on Windows X-Git-Tag: v3.5.0a3~127^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1cf4f7ef9e6b295d397bdecbc1a2f9f8f529a14;p=thirdparty%2FPython%2Fcpython.git Issue #23708: Fix _Py_read() compilation error on Windows Fix typo: self->fd => fd --- diff --git a/Python/fileutils.c b/Python/fileutils.c index 0948781a62bc..702e25df619d 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;