From: Raymond Hettinger Date: Mon, 20 Apr 2020 20:47:12 +0000 (-0700) Subject: Fix uninitialized struct member (GH-19589) X-Git-Tag: v3.9.0a6~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bba760e9b6c7da3586ed9c8e3d5a0ce2909a97bb;p=thirdparty%2FPython%2Fcpython.git Fix uninitialized struct member (GH-19589) --- diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index 78706b6ec3c4..fd4b4c268cc9 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; }