[Python-checkins] cpython (3.5): Issue #26200: Restored more safe usages of Py_SETREF.
serhiy.storchaka
python-checkins at python.org
Mon Apr 11 02:58:10 EDT 2016
https://hg.python.org/cpython/rev/aa5dbc32d313
changeset: 100915:aa5dbc32d313
branch: 3.5
parent: 100913:73050563053f
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Apr 11 09:53:37 2016 +0300
summary:
Issue #26200: Restored more safe usages of Py_SETREF.
files:
Modules/_functoolsmodule.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -294,9 +294,9 @@
else
Py_INCREF(dict);
- Py_XSETREF(pto->fn, fn);
- Py_XSETREF(pto->args, fnargs);
- Py_XSETREF(pto->kw, kw);
+ Py_SETREF(pto->fn, fn);
+ Py_SETREF(pto->args, fnargs);
+ Py_SETREF(pto->kw, kw);
Py_XSETREF(pto->dict, dict);
Py_RETURN_NONE;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list