]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix uninitialized struct member (GH-19589)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 20 Apr 2020 20:47:12 +0000 (13:47 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 20:47:12 +0000 (13:47 -0700)
Modules/_functoolsmodule.c

index 78706b6ec3c4c1c3f89d8978f956bef0b995fe11..fd4b4c268cc979a2201c9b93b9a83ae683183514 100644 (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;
 }