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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 16 16:01:43 UTC 2019


 sw/source/core/unocore/unofield.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a3a552c05c84c0b00d68af6370c271016368f26d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 16 11:19:44 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 16 17:56:47 2019 +0200

    tdf#1448234 Uninitialized pointer field
    
    Change-Id: I295cdc194d566c6801d4a7f9d6cbb31ee5e45df2
    Reviewed-on: https://gerrit.libreoffice.org/75707
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 8a05e1916438..007c114339ac 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -1138,7 +1138,8 @@ public:
     std::unique_ptr<SwFieldProperties_Impl> m_pProps;
 
     Impl(SwDoc *const pDoc, SwFormatField *const pFormat, SwServiceType nServiceId)
-        : m_pFormatField(pFormat)
+        : m_pFieldType(nullptr)
+        , m_pFormatField(pFormat)
         , m_EventListeners(m_Mutex)
         , m_pDoc(pDoc)
         , m_bIsDescriptor(pFormat == nullptr)


More information about the Libreoffice-commits mailing list