mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-07 00:04:42 +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:
@@ -708,7 +708,7 @@ protected:
|
||||
|
||||
private:
|
||||
handle obj;
|
||||
PyObject *key, *value;
|
||||
PyObject *key = nullptr, *value = nullptr;
|
||||
ssize_t pos = -1;
|
||||
};
|
||||
NAMESPACE_END(iterator_policies)
|
||||
|
||||
Reference in New Issue
Block a user