[poppler] poppler/CairoOutputDev.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Wed Nov 28 09:00:06 PST 2012


 poppler/CairoOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bdb17da35de49b9fd1a549c3afd5e36004552080
Author: Hib Eris <hib at hiberis.nl>
Date:   Mon Nov 26 20:38:03 2012 +0100

    cairo: Fix uninitaliazed warning in CairoOutputDev
    
    Fix warning:
    
      CXX    CairoOutputDev.lo
    ../../poppler/poppler/CairoOutputDev.cc: In member function 'virtual void RescaleDrawImage::getRow(int, uint32_t*)':
    ../../poppler/poppler/CairoOutputDev.cc:2813:25: warning: 'pix' may be used uninitialized in this function [-Wuninitialized]
    
    https://bugs.freedesktop.org/show_bug.cgi?id=57571

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 2772bd1..f3fb49e 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2797,7 +2797,7 @@ public:
     int i;
     Guchar *pix;
 
-    if (row_num == current_row)
+    if (row_num <= current_row)
       return;
 
     while (current_row  < row_num) {


More information about the poppler mailing list