Fix uninitialized nresults in GetRGB
authorJun Fang <jun_fang@foxitsoftware.com>
Tue, 15 Jul 2014 00:07:23 +0000 (17:07 -0700)
committerJun Fang <jun_fang@foxitsoftware.com>
Tue, 15 Jul 2014 00:07:23 +0000 (17:07 -0700)
BUG=387809
R=palmer@chromium.org

Review URL: https://codereview.chromium.org/379283003

core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp

index b661bbe..408a553 100644 (file)
@@ -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;