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

Unified Diff: ui/base/x/x11_util.cc

Issue 2912123002: [Merge to M60] X11: Fix use-of-uninitialized-variable (Closed)
Patch Set: Created 3 years, 7 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: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index 8f9dee040f017775e339b13aeee248e75fd78cff..834eff6386b0e4bd7d796aec4381e9b6a989c113 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -1383,7 +1383,7 @@ XVisualManager::XVisualManager()
transparent_visual_id_(0),
using_software_rendering_(false),
have_gpu_argb_visual_(false) {
- int visuals_len;
+ int visuals_len = 0;
XVisualInfo visual_template;
visual_template.screen = DefaultScreen(display_);
gfx::XScopedPtr<XVisualInfo[]> visual_list(XGetVisualInfo(
« 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