From 45e90394e728d94c0840010d4b47803456539d09 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 18 Jul 2013 23:57:35 +0200 Subject: [PATCH] Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False whereas the fchmodat() function is not avaialble. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3b4b5704ec8..5f5c85e8d9e 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));