Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 864b63c

Browse files
Issue #26200: Restored more safe usages of Py_SETREF.
1 parent 199e3f8 commit 864b63c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_functoolsmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state)
294294
else
295295
Py_INCREF(dict);
296296

297-
Py_XSETREF(pto->fn, fn);
298-
Py_XSETREF(pto->args, fnargs);
299-
Py_XSETREF(pto->kw, kw);
297+
Py_SETREF(pto->fn, fn);
298+
Py_SETREF(pto->args, fnargs);
299+
Py_SETREF(pto->kw, kw);
300300
Py_XSETREF(pto->dict, dict);
301301
Py_RETURN_NONE;
302302
}

0 commit comments

Comments
 (0)