diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 15:56:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 15:56:00 +0000 |
commit | 4c02b7d0cd6bcde7b2d0c26c34056ea6a00c170d (patch) | |
tree | 460fbe1a79cf0ada7121d64666cbdfff56abd1f3 /sw | |
parent | f645acbe91207502df56eb395efc80d92e24a73c (diff) |
coverity#736847 Dereference before null check
Change-Id: I83025065fd69a50ec06a9d1ed5fdd5ed0242bce0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/ftnfrm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx index 52d5a4df0775..098d738b2a75 100644 --- a/sw/source/core/layout/ftnfrm.cxx +++ b/sw/source/core/layout/ftnfrm.cxx @@ -1768,7 +1768,7 @@ void SwFtnBossFrm::_CollectFtns( const SwCntntFrm* _pRef, bool bFound = false; - while ( _pFtn ) + do { // Search for the next footnote in this column/page so that // we do not start from zero again after cutting one footnote. @@ -1876,6 +1876,7 @@ void SwFtnBossFrm::_CollectFtns( const SwCntntFrm* _pRef, else break; } + while ( _pFtn ); } void SwFtnBossFrm::_MoveFtns( SwFtnFrms &rFtnArr, sal_Bool bCalc ) |