[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Tue Apr 1 08:53:32 PDT 2014


 vcl/source/gdi/metaact.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e3dad060929de9beeeed2978f1b1427a91152073
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 1 16:52:21 2014 +0100

    valgrind: Conditional jump or move depends on uninitialised value
    
    Change-Id: Ia0b22f7c394d1c2387d1cad7e3d99c79eaeca81a

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index eaa511f..75f1465 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1083,7 +1083,7 @@ void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
 
     if( aCompat.GetVersion() >= 2 )     // Version 2
     {
-        sal_uInt8 bHasPolyFlags;
+        sal_uInt8 bHasPolyFlags(0);
         rIStm.ReadUChar( bHasPolyFlags );
         if ( bHasPolyFlags )
             maPoly.Read( rIStm );


More information about the Libreoffice-commits mailing list