summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSander Visser <github@visser.se>2020-06-26 10:46:21 +0200
committerSander Visser <github@visser.se>2020-07-16 21:53:44 +0200
commit3014b26cf2bb51b81339a18a453b8562cb5acd0a (patch)
tree68f82d07bdb701520355eeff4cf575a41107debd /src
parent4f9ece6c599e0ffd4a648461bc034c80ed5d6d6b (diff)
Fix QXmlStreamPrivateTagStack uninitialized member
Make sure to init tagsDone from constructor. Avoid relying on QXmlStreamReaderPrivate::init(). Change-Id: I40c08dd370b0ad519e2d6ebc23b8a906c836508e Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/serialization/qxmlstream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/serialization/qxmlstream.cpp b/src/corelib/serialization/qxmlstream.cpp
index 690ea7588f..7c075c9297 100644
--- a/src/corelib/serialization/qxmlstream.cpp
+++ b/src/corelib/serialization/qxmlstream.cpp
@@ -791,6 +791,7 @@ QXmlStreamPrivateTagStack::QXmlStreamPrivateTagStack()
namespaceDeclaration.prefix = addToStringStorage(u"xml");
namespaceDeclaration.namespaceUri = addToStringStorage(u"http://www.w3.org/XML/1998/namespace");
initialTagStackStringStorageSize = tagStackStringStorageSize;
+ tagsDone = false;
}
#ifndef QT_NO_XMLSTREAMREADER