Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2273)

Unified Diff: content/shell/renderer/test_runner/web_ax_object_proxy.cc

Issue 1090033002: Avoid uninitialized value warning in MemorySanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698