summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-05-15 13:38:35 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-05-15 13:45:32 (GMT)
commit4573bc08a280be8f8dfd4659146b6d4b1afc185a (patch)
tree2dc9a026fe6b09a124a0188ad61e24860facfcdc
parentfe7040348d82c5e5d302e7ec674fc0e3f68f06e1 (diff)
downloadQt-4573bc08a280be8f8dfd4659146b6d4b1afc185a.zip
Qt-4573bc08a280be8f8dfd4659146b6d4b1afc185a.tar.gz
Qt-4573bc08a280be8f8dfd4659146b6d4b1afc185a.tar.bz2
Initialize variable to avoid valgrind error.
For some reason it's only sometimes hit and cannot be deterministically reproduced. Task-number: 253722 Reviewed-by: TrustMe
-rw-r--r--src/xmlpatterns/expr/qxsltsimplecontentconstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/expr/qxsltsimplecontentconstructor.cpp b/src/xmlpatterns/expr/qxsltsimplecontentconstructor.cpp
index ef77c76..104c5cc 100644
--- a/src/xmlpatterns/expr/qxsltsimplecontentconstructor.cpp
+++ b/src/xmlpatterns/expr/qxsltsimplecontentconstructor.cpp
@@ -105,7 +105,7 @@ Item XSLTSimpleContentConstructor::evaluateSingleton(const DynamicContext::Ptr &
QString result;
bool previousIsText = false;
- bool discard;
+ bool discard = false;
if(next)
{