vcl/source/filter/imet/ios2met.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b465a67e2e411f295fa8e91ee3289eda8ccba038 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 9 08:41:42 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 9 10:48:53 2021 +0200 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 <caol...@redhat.com> 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);