From 4706eee2f3de6547d475a69c340b2b20942fb2d8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 3 Aug 2015 20:21:05 +0100 Subject: coverity#1315001 Dereference null return value Change-Id: I648d126f65adcf980767083fa88e4b672b422f7f --- sw/source/core/doc/docfmt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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 ) " - 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 && -- cgit