summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-18 21:58:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-18 21:58:08 (GMT)
commitd85032e25d4f9864ecc694a02a6678b4e6069739 (patch)
treec8411917c18235653d376e73eb61bc8b67f2521e /Modules/posixmodule.c
parent9e09c26e8a5af10609f1e470ae736f4f24bf46b7 (diff)
parent45e90394e728d94c0840010d4b47803456539d09 (diff)
downloadcpython-d85032e25d4f9864ecc694a02a6678b4e6069739.zip
cpython-d85032e25d4f9864ecc694a02a6678b4e6069739.tar.gz
cpython-d85032e25d4f9864ecc694a02a6678b4e6069739.tar.bz2
(Merge 3.3) Fix posix_chflags(): return_value was uninitialized when
follow_symlinks=False whereas the fchmodat() function is not avaialble.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 86002c3..cc54790 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2778,7 +2778,7 @@ posix_chflags(PyObject *self, PyObject *args, PyObject *kwargs)
unsigned long flags;
int follow_symlinks = 1;
int result;
- PyObject *return_value;
+ PyObject *return_value = NULL;
static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
memset(&path, 0, sizeof(path));