Skip to content

Commit f023e77

Browse files
committed
shut up UBSan
1 parent 1a50981 commit f023e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ setarrayitem(arrayobject *ap, Py_ssize_t i, PyObject *v, arraydata *data)
857857
#endif
858858
}
859859
#endif
860-
return (*ap->ob_descr->setitem)(data->items, i, v);
860+
return (*ap->ob_descr->setitem)(data == NULL ? NULL : data->items, i, v);
861861
}
862862

863863
static int

0 commit comments

Comments
 (0)