Initialize member variable QSGAnimationDriver::m_lag.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 5 Nov 2014 08:22:11 +0000 (09:22 +0100)
committerFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 5 Nov 2014 18:21:39 +0000 (19:21 +0100)
Fixes purify warning:
[W] UMR: Uninitialized memory read in QSGAnimationDriver::advance(void) {1 occurrence}
QSGAnimationDriver::advance(void) [qtdeclarative\src\quick\scenegraph\qsgcontext.cpp:221]

Task-number: QTBUG-42213
Change-Id: Ide35830c60c5935644747da5cfbad1cdbd357232
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
src/quick/scenegraph/qsgcontext.cpp

index b5bdbde..90102f1 100644 (file)
@@ -161,6 +161,7 @@ public:
         , m_time(0)
         , m_vsync(0)
         , m_mode(VSyncMode)
+        , m_lag(0)
         , m_bad(0)
         , m_good(0)
     {