summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-04-20 20:47:12 (GMT)
committerGitHub <noreply@github.com>2020-04-20 20:47:12 (GMT)
commitbba760e9b6c7da3586ed9c8e3d5a0ce2909a97bb (patch)
tree7cb1ac96bb7c2e319b6e5cb65bc5759c08cf0c54 /Modules
parenta25a04fea5446b1712cde0cff556574be139285a (diff)
downloadcpython-bba760e9b6c7da3586ed9c8e3d5a0ce2909a97bb.zip
cpython-bba760e9b6c7da3586ed9c8e3d5a0ce2909a97bb.tar.gz
cpython-bba760e9b6c7da3586ed9c8e3d5a0ce2909a97bb.tar.bz2
Fix uninitialized struct member (GH-19589)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_functoolsmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index 78706b6..fd4b4c2 100644
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -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;
}