We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555f446 commit a7b858bCopy full SHA for a7b858b
Objects/dictobject.c
@@ -6604,7 +6604,7 @@ _PyDict_NewKeysForClass(PyHeapTypeObject *cls)
6604
if (cls->ht_type.tp_dict) {
6605
PyObject *attrs = PyDict_GetItem(cls->ht_type.tp_dict, &_Py_ID(__static_attributes__));
6606
if (attrs != NULL && PyTuple_Check(attrs)) {
6607
- for (Py_ssize_t i; i < PyTuple_GET_SIZE(attrs); i++) {
+ for (Py_ssize_t i = 0; i < PyTuple_GET_SIZE(attrs); i++) {
6608
PyObject *key = PyTuple_GET_ITEM(attrs, i);
6609
Py_hash_t hash;
6610
if (PyUnicode_CheckExact(key) && (hash = unicode_get_hash(key)) != -1) {
0 commit comments