[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Tue Mar 20 08:51:43 UTC 2018


 sw/source/core/attr/calbck.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 0c69f9c627f6eb25f1df26fb63bc511bbac4667a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 19 15:49:56 2018 +0000

    coverity#1430100 Uninitialized pointer field
    
    Change-Id: I6d544b97c2b22a16d6a12b898cbe25580c433b61
    Reviewed-on: https://gerrit.libreoffice.org/51570
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index a0f82b381841..8f97761e38fe 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -28,8 +28,8 @@
 sw::LegacyModifyHint::~LegacyModifyHint() {}
 sw::ModifyChangedHint::~ModifyChangedHint() {}
 
-
 SwClient::SwClient(SwClient&& o)
+    : m_pRegisteredIn(nullptr)
 {
     if(o.m_pRegisteredIn)
     {
@@ -38,7 +38,6 @@ SwClient::SwClient(SwClient&& o)
     }
 }
 
-
 SwClient::~SwClient()
 {
     if(GetRegisteredIn())


More information about the Libreoffice-commits mailing list