mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove an unneeded assignment.
Found using Clang's static analyzer.
This commit is contained in:
parent
fee3acb082
commit
8a478ced55
1 changed files with 2 additions and 2 deletions
|
@ -971,7 +971,7 @@ subtype_dealloc(PyObject *self)
|
|||
|
||||
/* Clear slots up to the nearest base with a different tp_dealloc */
|
||||
base = type;
|
||||
while ((basedealloc = base->tp_dealloc) == subtype_dealloc) {
|
||||
while (base->tp_dealloc == subtype_dealloc) {
|
||||
if (Py_SIZE(base))
|
||||
clear_slots(base, self);
|
||||
base = base->tp_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue