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

Skip to content

Commit 45e9039

Browse files
committed
Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
1 parent c406a12 commit 45e9039

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
@@ -2961,7 +2961,7 @@ posix_chflags(PyObject *self, PyObject *args, PyObject *kwargs)
29612961
unsigned long flags;
29622962
int follow_symlinks = 1;
29632963
int result;
2964-
PyObject *return_value;
2964+
PyObject *return_value = NULL;
29652965
static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
29662966

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

0 commit comments

Comments
 (0)