[WK2][GTK] Uninitialized variable in TextCheckerGtk.cpp
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 07:24:03 +0000 (07:24 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 07:24:03 +0000 (07:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=89948

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-06-26
Reviewed by Martin Robinson.

Properly initialize didInitializeState in
TextChecker::state().

* UIProcess/gtk/TextCheckerGtk.cpp:
(WebKit::TextChecker::state):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/gtk/TextCheckerGtk.cpp

index d6ca4cb..067b988 100644 (file)
@@ -1,3 +1,16 @@
+2012-06-26  Christophe Dumez  <christophe.dumez@intel.com>
+
+        [WK2][GTK] Uninitialized variable in TextCheckerGtk.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=89948
+
+        Reviewed by Martin Robinson.
+
+        Properly initialize didInitializeState in
+        TextChecker::state().
+
+        * UIProcess/gtk/TextCheckerGtk.cpp:
+        (WebKit::TextChecker::state):
+
 2012-06-25  Simon Hausmann  <simon.hausmann@nokia.com>
 
         [Qt] Make it possible to build WebKit without QtWidgets
index 5b26d12..405c0e1 100644 (file)
@@ -38,7 +38,7 @@ static TextCheckerState textCheckerState;
 
 const TextCheckerState& TextChecker::state()
 {
-    static bool didInitializeState;
+    static bool didInitializeState = false;
     if (didInitializeState)
         return textCheckerState;