diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 10:15:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 12:33:19 +0000 |
commit | f02c2cbb28d7748aab9702218e901c2775d4d3a2 (patch) | |
tree | b6fccf72b1926d7a6e73bfeeea883614200a4cd6 /sw | |
parent | 802b66210d551fe04225ce71025c34914b4b3b7d (diff) |
coverity#704938 Dereference after null check
Change-Id: I4108ee2cf86f0cf080a7590a0b2667071418673c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 017c4b6c7e21..b7183c0f9801 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1403,7 +1403,7 @@ void lcl_CopyHint( SwCharFmt* pFmt = static_cast<SwCharFmt*>(pHt->GetCharFmt().GetCharFmt()); - if( pFmt && pOtherDoc ) + if (pOtherDoc) { pFmt = pOtherDoc->CopyCharFmt( *pFmt ); } |