summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-09 08:41:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-09 10:48:53 +0200
commitb465a67e2e411f295fa8e91ee3289eda8ccba038 (patch)
tree7492ec5974e63172ee0652d6972aa548e0ab90cd /vcl
parent3749d9af3745c0eaff7239e379578e4e2af89e9d (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Iead995bc6c568c9e517c6402e875127343f30651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121837 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/imet/ios2met.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx
index e6d31c5dc86a..9bb3346de56c 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -814,7 +814,7 @@ sal_uInt32 OS2METReader::ReadBigEndian3BytesLong()
sal_uInt32 OS2METReader::ReadLittleEndian3BytesLong()
{
- sal_uInt8 nHi,nMed,nLo;
+ sal_uInt8 nHi(0), nMed(0), nLo(0);
pOS2MET->ReadUChar( nLo ).ReadUChar( nMed ).ReadUChar( nHi );
return ((static_cast<sal_uInt32>(nHi)&0xff)<<16)|((static_cast<sal_uInt32>(nMed)&0xff)<<8)|(static_cast<sal_uInt32>(nLo)&0xff);