Initialize variables before using them.
authorSérgio Martins <sergio.martins@kdab.com>
Wed, 6 Nov 2013 15:04:10 +0000 (15:04 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 6 Nov 2013 15:55:09 +0000 (16:55 +0100)
Change-Id: I7cd5a17259814b3f2405b63d7f4d2a0fd30cae4d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4mm.cpp

index 3a53588..9eb3ae7 100644 (file)
@@ -165,6 +165,8 @@ struct MemoryManager::Data
         , gcBlocked(false)
         , engine(0)
         , stackTop(0)
+        , totalItems(0)
+        , totalAlloc(0)
     {
         memset(smallItems, 0, sizeof(smallItems));
         memset(nChunks, 0, sizeof(nChunks));