summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-06 12:52:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-06 15:23:19 +0100
commit08bbd27e1cb6106e48489b2ca787201ca88da74a (patch)
tree77896aec0cdd37ff22bc502c81f48796a5583480 /tools/source
parent1c722a1fc02a76c9e503d36d66598aa5ca4dc2e1 (diff)
ofz: Use-of-uninitialized-value
Change-Id: I41554dec3819efcd8e28f82bb732141c85414e9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131074 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/stream/GenericTypeSerializer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/stream/GenericTypeSerializer.cxx b/tools/source/stream/GenericTypeSerializer.cxx
index 7bba06d97aba..8abe23237d85 100644
--- a/tools/source/stream/GenericTypeSerializer.cxx
+++ b/tools/source/stream/GenericTypeSerializer.cxx
@@ -36,9 +36,9 @@ void GenericTypeSerializer::readColor(Color& rColor)
if (nColorNameID & COL_NAME_USER)
{
- sal_uInt16 nRed;
- sal_uInt16 nGreen;
- sal_uInt16 nBlue;
+ sal_uInt16 nRed(0);
+ sal_uInt16 nGreen(0);
+ sal_uInt16 nBlue(0);
mrStream.ReadUInt16(nRed);
mrStream.ReadUInt16(nGreen);