diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2014-07-14 17:07:23 -0700 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2014-07-14 17:07:23 -0700 |
commit | 1c8d196f02d32f75e32d189a6ac92ca13124895c (patch) | |
tree | af065330cc07193dd7fd3a91e322978c3f15828a /core/src/fpdfapi | |
parent | feff0db75bdb16c2597fcdf7c6a295968dc3d2af (diff) | |
download | pdfium-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/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp | 2 |
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; |