]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 18 Jul 2013 21:57:35 +0000 (23:57 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 18 Jul 2013 21:57:35 +0000 (23:57 +0200)
whereas the fchmodat() function is not avaialble.

Modules/posixmodule.c

index 3b4b5704ec8424d1d957441535ed05bb355e7463..5f5c85e8d9e3a06e27c0a92a29acc9c270b37c59 100644 (file)
@@ -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));