diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 09:45:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 12:11:40 +0000 |
commit | 191fecdb2610c862f17d6ee367548c8f532557b0 (patch) | |
tree | b51367e83959db75f3c31f0d189a449031182467 /sw | |
parent | f4e4fe93ed86b7f7b10e7801da7156c746338ea4 (diff) |
coverity#704925 Dereference after null check
Change-Id: Ideb2720058b94bdecbfcbb76421b475b6c6e3304
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/swg/swblocks.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/swg/swblocks.cxx b/sw/source/core/swg/swblocks.cxx index 8fa212c520fb..c784e720fa4b 100644 --- a/sw/source/core/swg/swblocks.cxx +++ b/sw/source/core/swg/swblocks.cxx @@ -553,8 +553,10 @@ SwDoc* SwTextBlocks::GetDoc() void SwTextBlocks::ClearDoc() { if( pImp ) + { pImp->ClearDoc(); - pImp->nCur = (sal_uInt16) -1; + pImp->nCur = (sal_uInt16) -1; + } } |