type_record: Uninit Member (#1658)

Fix an uninitialized member in `type_record`.

Found with coverity in a downstream project.
This commit is contained in:
Axel Huebl 2019-06-10 22:02:40 +02:00 committed by Wenzel Jakob
parent 69dc380c0d
commit 9424d5d277
1 changed files with 2 additions and 1 deletions

View File

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