vcl/unx/generic/app/saldisp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2206e6e8f0cd392b32059fb8ecb7a3e1fa38be60
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 24 08:45:38 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 24 16:17:28 2021 +0100

    cid#1474443 Uninitialized scalar variable
    
    Change-Id: I346425552d437cfd77dced31efca384d8de7b542
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113019
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 44362fc86a3f..ce72a42494e9 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -2365,8 +2365,8 @@ SalVisual::SalVisual( const XVisualInfo* pXVI )
     if( GetClass() != TrueColor )
     {
         eRGBMode_ = SalRGB::RGB;
-        nRedShift_ = nGreenShift_ = nBlueShift_;
-        nRedBits_ = nGreenBits_ = nBlueBits_;
+        nRedShift_ = nGreenShift_ = nBlueShift_ = 0;
+        nRedBits_ = nGreenBits_ = nBlueBits_ = 0;
         return;
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to