summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-16 11:19:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 17:56:47 +0200
commita3a552c05c84c0b00d68af6370c271016368f26d (patch)
treef0b79d73f5c32460a0e85d3d9d09f0a5bd639ccd /sw/source
parent3fb7ffeb85d87551ffcddd63b7c90c6b0e573e5f (diff)
tdf#1448234 Uninitialized pointer field
Change-Id: I295cdc194d566c6801d4a7f9d6cbb31ee5e45df2 Reviewed-on: https://gerrit.libreoffice.org/75707 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/unocore/unofield.cxx3
1 files changed, 2 insertions, 1 deletions
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)