Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False

whereas the fchmodat() function is not avaialble.
This commit is contained in:
Victor Stinner 2013-07-18 23:57:35 +02:00
parent c406a121f7
commit 45e90394e7
1 changed files with 1 additions and 1 deletions

View File

@ -2961,7 +2961,7 @@ posix_chflags(PyObject *self, PyObject *args, PyObject *kwargs)
unsigned long flags; unsigned long flags;
int follow_symlinks = 1; int follow_symlinks = 1;
int result; int result;
PyObject *return_value; PyObject *return_value = NULL;
static char *keywords[] = {"path", "flags", "follow_symlinks", NULL}; static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
memset(&path, 0, sizeof(path)); memset(&path, 0, sizeof(path));