(Merge 3.3) 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:58:08 +02:00
commit d85032e25d
1 changed files with 1 additions and 1 deletions

View File

@ -2778,7 +2778,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));