Issue #26200: Restored more safe usages of Py_SETREF.
This commit is contained in:
parent
199e3f8b96
commit
864b63c33f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue