summaryrefslogtreecommitdiffstats
path: root/Modules/_fileio.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-19 15:19:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-01-19 15:19:46 (GMT)
commit7aedf11e57bf38e992ebe6c0ae86167ae9b79412 (patch)
tree2b363f89217c0a47f0ccdbd1e48db7a33e3eb939 /Modules/_fileio.c
parent05e782fc3b5f38a68a760e1044eab0b5db1d279a (diff)
downloadcpython-7aedf11e57bf38e992ebe6c0ae86167ae9b79412.zip
cpython-7aedf11e57bf38e992ebe6c0ae86167ae9b79412.tar.gz
cpython-7aedf11e57bf38e992ebe6c0ae86167ae9b79412.tar.bz2
fix compiler warning
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 03632f7..22b473c 100644
--- a/Modules/_fileio.c
+++ b/Modules/_fileio.c
@@ -60,7 +60,7 @@ static int
internal_close(PyFileIOObject *self)
{
int err = 0;
- int save_errno;
+ int save_errno = 0;
if (self->fd >= 0) {
int fd = self->fd;
self->fd = -1;