summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-05 09:22:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-05 14:32:39 +0200
commit08665e27e1d66cde90bac978eed4cee998b1d5d5 (patch)
treef1cd107d554c208368ce83136d2fdead92a8d599 /vcl
parentce0229a9a5cb9c375c64dc4bc2bfafb5446f57c4 (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Iad99d728cea33e8a3b81ccd654258bddd3f96a13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121668 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/imet/ios2met.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx
index cf1694ca04a5..e767cccc047b 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -1731,7 +1731,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
case GOrdPIvAtr: PushAttr(nOrderID);
[[fallthrough]];
case GOrdSIvAtr: {
- sal_uInt8 nA, nP, nFlags;
+ sal_uInt8 nA(0), nP(0), nFlags(0);
Color aCol;
RasterOp eROP;
pOS2MET->ReadUChar( nA ).ReadUChar( nP ).ReadUChar( nFlags );
@@ -1780,7 +1780,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
}
}
else {
- sal_uInt8 nMix;
+ sal_uInt8 nMix(0);
pOS2MET->ReadUChar( nMix );
if (nMix==0) {
switch (nP) {