Fix uninitialized struct member (GH-19589)
This commit is contained in:
parent
a25a04fea5
commit
bba760e9b6
|
@ -1195,6 +1195,7 @@ lru_cache_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
obj->maxsize = maxsize;
|
||||
Py_INCREF(cache_info_type);
|
||||
obj->cache_info_type = cache_info_type;
|
||||
obj->dict = NULL;
|
||||
return (PyObject *)obj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue