diff options
author | foxit <jun_fang@foxitsoftware.com> | 2014-07-07 14:03:18 -0700 |
---|---|---|
committer | foxit <jun_fang@foxitsoftware.com> | 2014-07-07 14:03:18 -0700 |
commit | f3227aeb0b4243a0ce4da5f6adfa1ebbfc902d17 (patch) | |
tree | 5fcf8db15b29acfec0bfdb4aefd953ab69a4a32d /core/src/fpdfapi/fpdf_page | |
parent | e644f7f0bc3f152461c5e29ca5c96d4837ba62d9 (diff) | |
download | pdfium-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_page')
-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 3dad6be129..867b245a50 100644 --- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp @@ -1027,7 +1027,7 @@ FX_BOOL CPDF_DeviceNCS::GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOA return FALSE; } CFX_FixedBufGrow<FX_FLOAT, 16> results(m_pFunc->CountOutputs()); - int nresults; + int nresults = 0; m_pFunc->Call(pBuf, m_nComponents, results, nresults); if (nresults == 0) { return FALSE; |