Skip to content

Commit 1843290

Browse files
committed
PyStructSequence_GET_ITEM() cannot fail
1 parent 44bc1b2 commit 1843290

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Python/sysmodule.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3508,9 +3508,6 @@ _PySys_SetFlagObj(Py_ssize_t pos, PyObject *value)
35083508
if (i != pos) {
35093509
PyObject *old_value;
35103510
old_value = PyStructSequence_GET_ITEM(old_flags, i); // borrowed ref
3511-
if (old_value == NULL) {
3512-
goto error;
3513-
}
35143511
sys_set_flag(new_flags, i, old_value);
35153512
}
35163513
else {

0 commit comments

Comments
 (0)