summaryrefslogtreecommitdiffstats
path: root/Modules/_functoolsmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-11 06:53:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-11 06:53:37 (GMT)
commit864b63c33f8f715121efeb9fce031f9c2534c27a (patch)
tree14f41dba6e7b3cb3be030328ee6f8f6eba25e658 /Modules/_functoolsmodule.c
parent199e3f8b96c7576e400def369624ca78c97afec8 (diff)
downloadcpython-864b63c33f8f715121efeb9fce031f9c2534c27a.zip
cpython-864b63c33f8f715121efeb9fce031f9c2534c27a.tar.gz
cpython-864b63c33f8f715121efeb9fce031f9c2534c27a.tar.bz2
Issue #26200: Restored more safe usages of Py_SETREF.
Diffstat (limited to 'Modules/_functoolsmodule.c')
-rw-r--r--Modules/_functoolsmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index 6205708..1aa4571 100644
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state)
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;
}