Index: content/shell/renderer/test_runner/web_ax_object_proxy.cc |
diff --git a/content/shell/renderer/test_runner/web_ax_object_proxy.cc b/content/shell/renderer/test_runner/web_ax_object_proxy.cc |
index 019f6415ce7550d7f29da85cc7a90e009f8f0b66..816549e14f2c050320ff00a68a0a9c5c0b50c6c6 100644 |
--- a/content/shell/renderer/test_runner/web_ax_object_proxy.cc |
+++ b/content/shell/renderer/test_runner/web_ax_object_proxy.cc |
@@ -1164,7 +1164,7 @@ int WebAXObjectProxy::WordStart(int character_index) { |
if (accessibility_object_.role() != blink::WebAXRoleStaticText) |
return -1; |
- int word_start, word_end; |
+ int word_start = 0, word_end = 0; |
GetBoundariesForOneWord(accessibility_object_, character_index, |
word_start, word_end); |
return word_start; |
@@ -1175,7 +1175,7 @@ int WebAXObjectProxy::WordEnd(int character_index) { |
if (accessibility_object_.role() != blink::WebAXRoleStaticText) |
return -1; |
- int word_start, word_end; |
+ int word_start = 0, word_end = 0; |
GetBoundariesForOneWord(accessibility_object_, character_index, |
word_start, word_end); |
return word_end; |