summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-11 20:36:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-12 00:31:34 +0000
commit2cdd40668865fe8e7f2d79480fa61b4eae13f3ab (patch)
tree2a7d8a022f6166c3d2ab13f96b4211c5a1a9b75c /sw
parenteb9a7ffbefba46db4bc4e054c82151d5265bdaa5 (diff)
coverity#1338595 Dereference before null check
Change-Id: I8f23fb4fe51f64a82e58dcc150aeca964ac6af38
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/laycache.cxx4
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 );
+ }
}
}
}