diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-11 20:36:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-12 00:31:34 +0000 |
commit | 2cdd40668865fe8e7f2d79480fa61b4eae13f3ab (patch) | |
tree | 2a7d8a022f6166c3d2ab13f96b4211c5a1a9b75c | |
parent | eb9a7ffbefba46db4bc4e054c82151d5265bdaa5 (diff) |
coverity#1338595 Dereference before null check
Change-Id: I8f23fb4fe51f64a82e58dcc150aeca964ac6af38
-rw-r--r-- | sw/source/core/layout/laycache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx index 7124158e58f0..06b0f3f7c54b 100644 --- a/sw/source/core/layout/laycache.cxx +++ b/sw/source/core/layout/laycache.cxx @@ -223,7 +223,7 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc ) assert(pTab && "Table follow without master"); } } - do + while (1) { sal_uLong nNdIdx = pTab->GetTable()->GetTableNode()->GetIndex(); @@ -268,7 +268,7 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc ) } else break; - } while( pTab ); + } } } } |