From 864b63c33f8f715121efeb9fce031f9c2534c27a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 11 Apr 2016 09:53:37 +0300 Subject: Issue #26200: Restored more safe usages of Py_SETREF. --- Modules/_functoolsmodule.c | 6 +++--- 1 file 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; } -- cgit v0.12