summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-16 20:08:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-16 22:07:44 +0200
commitd09770aab5b77c8f19da855855558154151ab45b (patch)
tree11dd3daace33a280ff8a177d8aeaf822992f7501 /emfio
parent922b8420071989026bf7cc2a973714788e0211dd (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ib65191933b91b74c6dd03ae3cfaa6e6cf8dd2434 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122210 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/source/reader/wmfreader.cxx4
1 files changed, 2 insertions, 2 deletions
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 );