tools/source/stream/GenericTypeSerializer.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 08bbd27e1cb6106e48489b2ca787201ca88da74a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Mar 6 12:52:37 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Mar 6 15:23:19 2022 +0100

    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 <caol...@redhat.com>

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);

Reply via email to