From 9424d5d27731e3c7333e7295b545ee8722054c73 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 10 Jun 2019 22:02:40 +0200 Subject: [PATCH] type_record: Uninit Member (#1658) Fix an uninitialized member in `type_record`. Found with coverity in a downstream project. --- include/pybind11/attr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/attr.h b/include/pybind11/attr.h index 8732cfe10..6962d6fc5 100644 --- a/include/pybind11/attr.h +++ b/include/pybind11/attr.h @@ -200,7 +200,8 @@ struct function_record { /// Special data structure which (temporarily) holds metadata about a bound class struct type_record { PYBIND11_NOINLINE type_record() - : multiple_inheritance(false), dynamic_attr(false), buffer_protocol(false), module_local(false) { } + : multiple_inheritance(false), dynamic_attr(false), buffer_protocol(false), + default_holder(true), module_local(false) { } /// Handle to the parent scope handle scope;