Skip to content

Commit a7b858b

Browse files
committed
Initialize value
1 parent 555f446 commit a7b858b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6604,7 +6604,7 @@ _PyDict_NewKeysForClass(PyHeapTypeObject *cls)
66046604
if (cls->ht_type.tp_dict) {
66056605
PyObject *attrs = PyDict_GetItem(cls->ht_type.tp_dict, &_Py_ID(__static_attributes__));
66066606
if (attrs != NULL && PyTuple_Check(attrs)) {
6607-
for (Py_ssize_t i; i < PyTuple_GET_SIZE(attrs); i++) {
6607+
for (Py_ssize_t i = 0; i < PyTuple_GET_SIZE(attrs); i++) {
66086608
PyObject *key = PyTuple_GET_ITEM(attrs, i);
66096609
Py_hash_t hash;
66106610
if (PyUnicode_CheckExact(key) && (hash = unicode_get_hash(key)) != -1) {

0 commit comments

Comments
 (0)