mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-21 06:05:32 +08: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…
x
Reference in New Issue
Block a user