diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-24 08:45:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-24 16:17:28 +0100 |
commit | 2206e6e8f0cd392b32059fb8ecb7a3e1fa38be60 (patch) | |
tree | 1bb377269ec107368e1c0b1ff311f4b4a3b28114 | |
parent | 493393d651ec32fd9cfbeb05f51253f70f4c0a87 (diff) |
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 <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |