Commit 864b63c3 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #26200: Restored more safe usages of Py_SETREF.

parent 199e3f8b
...@@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state) ...@@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state)
else else
Py_INCREF(dict); Py_INCREF(dict);
Py_XSETREF(pto->fn, fn); Py_SETREF(pto->fn, fn);
Py_XSETREF(pto->args, fnargs); Py_SETREF(pto->args, fnargs);
Py_XSETREF(pto->kw, kw); Py_SETREF(pto->kw, kw);
Py_XSETREF(pto->dict, dict); Py_XSETREF(pto->dict, dict);
Py_RETURN_NONE; Py_RETURN_NONE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment