summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2014-07-14 17:07:23 -0700
committerJun Fang <jun_fang@foxitsoftware.com>2014-07-14 17:07:23 -0700
commit1c8d196f02d32f75e32d189a6ac92ca13124895c (patch)
treeaf065330cc07193dd7fd3a91e322978c3f15828a /core
parentfeff0db75bdb16c2597fcdf7c6a295968dc3d2af (diff)
downloadpdfium-1c8d196f02d32f75e32d189a6ac92ca13124895c.tar.xz
Fix uninitialized nresults in GetRGB
BUG=387809 R=palmer@chromium.org Review URL: https://codereview.chromium.org/379283003
Diffstat (limited to 'core')
-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 b661bbefba..408a55301e 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
@@ -945,7 +945,7 @@ FX_BOOL CPDF_SeparationCS::GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_F
return TRUE;
}
CFX_FixedBufGrow<FX_FLOAT, 16> results(m_pFunc->CountOutputs());
- int nresults;
+ int nresults = 0;
m_pFunc->Call(pBuf, 1, results, nresults);
if (nresults == 0) {
return FALSE;