summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_render
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 14:03:18 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 14:03:18 -0700
commitf3227aeb0b4243a0ce4da5f6adfa1ebbfc902d17 (patch)
tree5fcf8db15b29acfec0bfdb4aefd953ab69a4a32d /core/src/fpdfapi/fpdf_render
parente644f7f0bc3f152461c5e29ca5c96d4837ba62d9 (diff)
downloadpdfium-f3227aeb0b4243a0ce4da5f6adfa1ebbfc902d17.tar.xz
Fix uninitialized nresults and RGB
BUG=387785 R=palmer@chromium.org Review URL: https://codereview.chromium.org/362403002
Diffstat (limited to 'core/src/fpdfapi/fpdf_render')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
index 4b4f929179..0bf6311b19 100644
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
@@ -710,7 +710,7 @@ static void _DrawCoonPatchMeshes(FX_BOOL bTensor, CFX_DIBitmap* pBitmap, CFX_Aff
pObject2Bitmap->Transform(coords[i].x, coords[i].y);
}
for (i = iStartColor; i < 4; i ++) {
- FX_FLOAT r, g, b;
+ FX_FLOAT r=0.0f, g=0.0f, b=0.0f;
stream.GetColor(r, g, b);
patch.patch_colors[i].comp[0] = (FX_INT32)(r * 255);
patch.patch_colors[i].comp[1] = (FX_INT32)(g * 255);