Build fix: use of uninitialized variable in ScrollingStateTree
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 16:02:20 +0000 (16:02 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 16:02:20 +0000 (16:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114443

Patch by Adenilson Cavalcanti <cavalcantii@gmail.com> on 2013-04-11
Reviewed by Anders Carlsson.

Initialize pointer to zero before use, fixes build.
No new tests, no changes on behavior.

* page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::attachNode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148206 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/scrolling/ScrollingStateTree.cpp

index 1aa7015..c3c99cd 100644 (file)
@@ -1,3 +1,16 @@
+2013-04-11  Adenilson Cavalcanti  <cavalcantii@gmail.com>
+
+        Build fix: use of uninitialized variable in ScrollingStateTree
+        https://bugs.webkit.org/show_bug.cgi?id=114443
+
+        Reviewed by Anders Carlsson.
+
+        Initialize pointer to zero before use, fixes build.
+        No new tests, no changes on behavior.
+
+        * page/scrolling/ScrollingStateTree.cpp:
+        (WebCore::ScrollingStateTree::attachNode):
+
 2013-04-11  Dirk Schulze  <krit@webkit.org>
 
         [CSS Shaders] Parse mix descriptor
index 0818186..110e5fb 100644 (file)
@@ -62,7 +62,7 @@ ScrollingNodeID ScrollingStateTree::attachNode(ScrollingNodeType nodeType, Scrol
         removeNode(node);
     }
 
-    ScrollingStateNode* newNode;
+    ScrollingStateNode* newNode = 0;
     if (!parentID) {
         // If we're resetting the root node, we should clear the HashMap and destroy the current children.
         clear();