Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
This commit is contained in:
parent
c406a121f7
commit
45e90394e7
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue