summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-29 11:00:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-29 15:16:23 +0200
commitbf5fc53cf7f35f7c39d0d8d8b871096b8ca2d042 (patch)
tree0c359368a24538af9f931cb2c73ff6693e6b5c25 /vcl
parentad33f461929e99b496869b831f83159bfb7ac40f (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ifecfcf3ff4c884d7bd65de7186c7d8db06b6b57b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121219 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 1d0b83ba1fb3..fc6f8c2fc595 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -2555,7 +2555,6 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
case EndGrfObjMagic: {
SvStream * pSave;
sal_uInt16 nOrderID, nOrderLen;
- sal_uInt8 nbyte;
if (!xOrdFile)
break;
@@ -2571,6 +2570,7 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
pOS2MET->Seek(0);
// "Segment header":
+ sal_uInt8 nbyte(0);
pOS2MET->ReadUChar( nbyte );
if (nbyte==0x70) { // header exists
pOS2MET->SeekRel(15); // but we don't need it