mirror of https://github.com/qt/qtgrpc.git
ProtobufDeserializer: fix uninitialized iterator member
Explicitly initialize m_it to avoid undefined behavior of uninitialized class members. Coverity-Id: 479445 Change-Id: I6af28d118ae12a25d58d697535da185c8e1c47e1 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
99d09ea8be
commit
5392ab2bf0
|
@ -74,7 +74,7 @@ public:
|
|||
|
||||
void reset(QByteArrayView data);
|
||||
|
||||
QProtobufSelfcheckIterator m_it;
|
||||
QProtobufSelfcheckIterator m_it = {};
|
||||
|
||||
private:
|
||||
void setError(QAbstractProtobufSerializer::Error error, QAnyStringView errorString) override;
|
||||
|
|
Loading…
Reference in New Issue