mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +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:
|
||||
handle obj;
|
||||
PyObject *key, *value;
|
||||
PyObject *key = nullptr, *value = nullptr;
|
||||
ssize_t pos = -1;
|
||||
};
|
||||
NAMESPACE_END(iterator_policies)
|
||||
|
Loading…
Reference in New Issue
Block a user