summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 17:01:10 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 17:01:10 +0000
commit1e545b6d207e74b4ef3398fbf8caa760ae649c78 (patch)
treeb8e7130d1cec48c941b025a85e5e31eaa75bba67 /ui
parent83e339751c1accb24d2a1622fe4939dec59fc75a (diff)
downloadchromium_src-1e545b6d207e74b4ef3398fbf8caa760ae649c78.zip
chromium_src-1e545b6d207e74b4ef3398fbf8caa760ae649c78.tar.gz
chromium_src-1e545b6d207e74b4ef3398fbf8caa760ae649c78.tar.bz2
Coverity: Fix uninitialized member variables.
CID=102647, 102333, 102332, 102303, 102302, 102299, 102297, 102296, 102048, 102032, 102031, 102030, 102029, 102028, 102010, 101681, 101657, 101655, 101438 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9005031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/clipboard/clipboard_win.cc3
-rw-r--r--ui/gfx/canvas_skia_win.cc4
-rw-r--r--ui/gfx/gl/gl_context_egl.cc5
3 files changed, 7 insertions, 5 deletions
diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc
index 4944bd7..ec3cd1e 100644
--- a/ui/base/clipboard/clipboard_win.cc
+++ b/ui/base/clipboard/clipboard_win.cc
@@ -160,7 +160,8 @@ void MakeBitmapOpaque(const SkBitmap& bitmap) {
} // namespace
-Clipboard::FormatType::FormatType() {
+// '0' is not a valid clip board data format.
+Clipboard::FormatType::FormatType() : data_(0) {
}
Clipboard::FormatType::FormatType(UINT native_format) : data_(native_format) {
diff --git a/ui/gfx/canvas_skia_win.cc b/ui/gfx/canvas_skia_win.cc
index 02a0cde..2d081a5 100644
--- a/ui/gfx/canvas_skia_win.cc
+++ b/ui/gfx/canvas_skia_win.cc
@@ -464,8 +464,8 @@ void CanvasSkia::DrawFadeTruncatingString(
int flags = NO_ELLIPSIS;
// If the whole string fits in the destination then just draw it directly.
- int total_string_width;
- int total_string_height;
+ int total_string_width = 0;
+ int total_string_height = 0;
SizeStringInt(text, font, &total_string_width, &total_string_height,
flags | TEXT_VALIGN_TOP);
diff --git a/ui/gfx/gl/gl_context_egl.cc b/ui/gfx/gl/gl_context_egl.cc
index d9b6950..7c94743 100644
--- a/ui/gfx/gl/gl_context_egl.cc
+++ b/ui/gfx/gl/gl_context_egl.cc
@@ -34,8 +34,9 @@ std::string GLContextEGL::GetExtensions() {
GLContextEGL::GLContextEGL(GLShareGroup* share_group)
: GLContext(share_group),
- context_(NULL)
-{
+ context_(NULL),
+ display_(NULL),
+ config_(NULL) {
}
GLContextEGL::~GLContextEGL() {