From: Victor Stinner Date: Thu, 18 Jul 2013 21:57:35 +0000 (+0200) Subject: Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False X-Git-Tag: v3.4.0a1~148^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45e90394e728d94c0840010d4b47803456539d09;p=thirdparty%2FPython%2Fcpython.git Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False whereas the fchmodat() function is not avaialble. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3b4b5704ec84..5f5c85e8d9e3 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));