summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:50:21 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:50:21 -0700
commitc7d873975a34b4327cce016095e38fd1416a2ecb (patch)
treecd8a541a1fca4dc8e025ba76efa5bebf8b351fd2
parentcceb554856cd9a042798c612cc5dde2af3cfd40e (diff)
downloadpdfium-c7d873975a34b4327cce016095e38fd1416a2ecb.tar.xz
Fix uninitialized RGB in LoadPalette
BUG=387506 R=palmer@chromium.org Review URL: https://codereview.chromium.org/361103002
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
index 6befe11ed4..fa8827c5d4 100644
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
@@ -869,7 +869,7 @@ void CPDF_DIBSource::LoadPalette()
FX_FLOAT color_values[3];
color_values[0] = m_pCompData[0].m_DecodeMin;
color_values[1] = color_values[2] = color_values[0];
- FX_FLOAT R, G, B;
+ FX_FLOAT R=0.0f, G=0.0f, B=0.0f;
m_pColorSpace->GetRGB(color_values, R, G, B);
FX_ARGB argb0 = ArgbEncode(255, FXSYS_round(R * 255), FXSYS_round(G * 255), FXSYS_round(B * 255));
color_values[0] += m_pCompData[0].m_DecodeStep;