summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 19:41:44 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 19:41:44 +0000
commitd24305956ba17de0317954d0e0a2a72cddf13c39 (patch)
treecf8ff8fbc0f18573beef32c850da72532334f4b9
parent0a09cce5fcd71d0bc675393f7db8d0ffa49bef18 (diff)
downloadchromium_src-d24305956ba17de0317954d0e0a2a72cddf13c39.zip
chromium_src-d24305956ba17de0317954d0e0a2a72cddf13c39.tar.gz
chromium_src-d24305956ba17de0317954d0e0a2a72cddf13c39.tar.bz2
Fix a rash of uninit data errors reported by Valgrind.
We fail to set several values when painting scrollbars, causing errors throughout GTK, GDK and GTK theme painting libraries. Review URL: http://codereview.chromium.org/12437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5987 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/port/platform/chromium/ScrollbarThemeChromiumLinux.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/port/platform/chromium/ScrollbarThemeChromiumLinux.cpp b/webkit/port/platform/chromium/ScrollbarThemeChromiumLinux.cpp
index 1dcf4b2..54480f7 100644
--- a/webkit/port/platform/chromium/ScrollbarThemeChromiumLinux.cpp
+++ b/webkit/port/platform/chromium/ScrollbarThemeChromiumLinux.cpp
@@ -72,6 +72,8 @@ static void initMozState(GtkWidgetState* mozState)
mozState->isDefault = false;
mozState->canDefault = false;
mozState->depressed = false;
+ mozState->curpos = 0;
+ mozState->maxpos = 0;
}
// -----------------------------------------------------------------------------