diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-12 11:21:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-12 15:35:37 +0200 |
commit | a7a62232f93a6383700e5473fe0a84f50e3c37b5 (patch) | |
tree | c03c8a7d867892cbf95a1db993cfa00a6c3cf7b1 /emfio | |
parent | bc1b7491436146c3c4b2b69a46bd0cd37bbbecce (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I6dc1f110054eefefffd7b58cafa8240a69bb176e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121995
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index 45ea81024519..ab4f905990d5 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -403,7 +403,7 @@ namespace emfio void EmfReader::ReadGDIComment(sal_uInt32 nCommentId) { - sal_uInt32 nPublicCommentIdentifier; + sal_uInt32 nPublicCommentIdentifier(0); mpInputStream->ReadUInt32(nPublicCommentIdentifier); SAL_INFO("emfio", "\t\tEMR_COMMENT_PUBLIC, id: 0x" << std::hex << nCommentId << std::dec); @@ -421,7 +421,7 @@ namespace emfio SAL_INFO("emfio", "\t\t\t\t\tRight: " << right); SAL_INFO("emfio", "\t\t\t\t\tBottom: " << bottom); - sal_uInt32 nDescChars; + sal_uInt32 nDescChars(0); mpInputStream->ReadUInt32(nDescChars); OUString aDesc; |