summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-03 20:21:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-03 20:33:46 +0100
commit4706eee2f3de6547d475a69c340b2b20942fb2d8 (patch)
tree9b706bb49da7faa80bdc11356724ea0f43853629 /sw
parent74355bdab856dd9de2fe269c6faa199bf886f941 (diff)
coverity#1315001 Dereference null return value
Change-Id: I648d126f65adcf980767083fa88e4b672b422f7f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docfmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 4acd8e885bf6..d438f5379812 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -183,7 +183,7 @@ static bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
"<lcl_RstAttr(..)> - certain attributes are kept, but not needed. -> please inform OD" );
SfxItemIter aIter( *pPara->pDelSet );
pItem = aIter.FirstItem();
- while( true )
+ while(pItem)
{
if ( ( pItem->Which() != RES_PAGEDESC &&
pItem->Which() != RES_BREAK &&