summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-18 21:57:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-18 21:57:35 (GMT)
commit45e90394e728d94c0840010d4b47803456539d09 (patch)
treefabf8bd2d7132f79dfae55cfca3ed87845056222 /Modules
parentc406a121f7f43772752012119b4b65df4b68d707 (diff)
downloadcpython-45e90394e728d94c0840010d4b47803456539d09.zip
cpython-45e90394e728d94c0840010d4b47803456539d09.tar.gz
cpython-45e90394e728d94c0840010d4b47803456539d09.tar.bz2
Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3b4b570..5f5c85e 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2961,7 +2961,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));