mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
type_record: Uninit Member (#1658)
Fix an uninitialized member in `type_record`. Found with coverity in a downstream project.
This commit is contained in:
parent
69dc380c0d
commit
9424d5d277
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user