Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d85032e

Browse files
committed
(Merge 3.3) Fix posix_chflags(): return_value was uninitialized when
follow_symlinks=False whereas the fchmodat() function is not avaialble.
2 parents 9e09c26 + 45e9039 commit d85032e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ posix_chflags(PyObject *self, PyObject *args, PyObject *kwargs)
27782778
unsigned long flags;
27792779
int follow_symlinks = 1;
27802780
int result;
2781-
PyObject *return_value;
2781+
PyObject *return_value = NULL;
27822782
static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
27832783

27842784
memset(&path, 0, sizeof(path));

0 commit comments

Comments
 (0)