emfio/source/reader/wmfreader.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d09770aab5b77c8f19da855855558154151ab45b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Sep 16 20:08:55 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Sep 16 22:07:44 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: Ib65191933b91b74c6dd03ae3cfaa6e6cf8dd2434
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122210
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/emfio/source/reader/wmfreader.cxx 
b/emfio/source/reader/wmfreader.cxx
index d71dbf485710..831a8eb4a837 100644
--- a/emfio/source/reader/wmfreader.cxx
+++ b/emfio/source/reader/wmfreader.cxx
@@ -930,8 +930,8 @@ namespace emfio
             case W_META_DIBCREATEPATTERNBRUSH:
             {
                 Bitmap  aBmp;
-                sal_uInt32  nRed = 0, nGreen = 0, nBlue = 0, nCount = 1;
-                sal_uInt16  nStyle, nColorUsage;
+                sal_uInt32 nRed(0), nGreen(0), nBlue(0), nCount(1);
+                sal_uInt16 nStyle(0), nColorUsage(0);
 
                 mpInputStream->ReadUInt16( nStyle ).ReadUInt16( nColorUsage );
                 SAL_INFO( "emfio", "\t\t Style:" << nStyle << ", ColorUsage: " 
<< nColorUsage );

Reply via email to