[Python-checkins] cpython (merge 3.3 -> default): (Merge 3.3) Fix posix_chflags(): return_value was uninitialized when
victor.stinner
python-checkins at python.org
Thu Jul 18 23:58:21 CEST 2013
http://hg.python.org/cpython/rev/627d29169ba2
changeset: 84712:627d29169ba2
parent: 84710:5a6cdc0d7de1
parent: 84711:8fe3daa11700
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Jul 18 23:58:08 2013 +0200
summary:
(Merge 3.3) Fix posix_chflags(): return_value was uninitialized when
follow_symlinks=False whereas the fchmodat() function is not avaialble.
files:
Modules/posixmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2778,7 +2778,7 @@
unsigned long flags;
int follow_symlinks = 1;
int result;
- PyObject *return_value;
+ PyObject *return_value = NULL;
static char *keywords[] = {"path", "flags", "follow_symlinks", NULL};
memset(&path, 0, sizeof(path));
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list