Fix uninitialized struct member (GH-19589)

This commit is contained in:
Raymond Hettinger 2020-04-20 13:47:12 -07:00 committed by GitHub
parent a25a04fea5
commit bba760e9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}