[poppler] Branch 'poppler-0.6' - poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Nov 10 02:54:41 PST 2007


 poppler/GfxState.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a3eff642127d6b365b3705df8476cc5b8b2122dd
Author: Brad Hards <bradh at frogmouth.net>
Date:   Sat Nov 10 11:54:29 2007 +0100

    Fix uninitialized variable access.
    
    Supported by Derek B. Noonburg

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 18bd363..5c55d53 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1532,8 +1532,8 @@ void GfxPatternColorSpace::getCMYK(GfxColor *color, GfxCMYK *cmyk) {
   cmyk->k = 1;
 }
 
-void GfxPatternColorSpace::getDefaultColor(GfxColor * /*color*/) {
-  // not used
+void GfxPatternColorSpace::getDefaultColor(GfxColor *color) {
+  color->c[0]=0;
 }
 
 //------------------------------------------------------------------------


More information about the poppler mailing list