summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r--Python/fileutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 0948781a62..702e25df61 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;