mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
dict_readonly: member init (#1661)
fix missing member initialization in pytypes: read-only dict. Found with coverity in a downstream project.
This commit is contained in:
parent
1c627c9ec0
commit
a2cdd0b915
@ -708,7 +708,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
handle obj;
|
handle obj;
|
||||||
PyObject *key, *value;
|
PyObject *key = nullptr, *value = nullptr;
|
||||||
ssize_t pos = -1;
|
ssize_t pos = -1;
|
||||||
};
|
};
|
||||||
NAMESPACE_END(iterator_policies)
|
NAMESPACE_END(iterator_policies)
|
||||||
|
Loading…
Reference in New Issue
Block a user