summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:58:24 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:58:24 -0700
commit5a5c04203ed06f10df7445767f6dab5d0fb696cf (patch)
tree1219b6ecf7ad6cb98a4d630f293f39dce47d26ea /core/src/fpdfapi
parent17dd07aa35dfc6606ac8351c5426c2bc8100d66f (diff)
downloadpdfium-5a5c04203ed06f10df7445767f6dab5d0fb696cf.tar.xz
Fix uninitialized RGB in GetRGB
BUG=386729 R=palmer@chromium.org Review URL: https://codereview.chromium.org/366803003
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r--core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
index ff44c591c7..3dad6be129 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
@@ -1362,7 +1362,7 @@ FX_BOOL CPDF_Color::GetRGB(int& R, int& G, int& B) const
if (m_pCS == NULL || m_pBuffer == NULL) {
return FALSE;
}
- FX_FLOAT r, g, b;
+ FX_FLOAT r=0.0f, g=0.0f, b=0.0f;
if (!m_pCS->GetRGB(m_pBuffer, r, g, b)) {
return FALSE;
}