diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 09:27:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 16:54:22 +0100 |
commit | 900d3e33a2bfcb093a96a11a997ecb4a10f28cc0 (patch) | |
tree | eb17745265f2a919bd83c13fe9fa1aeb7e0f03c0 /sw | |
parent | af5ebbf7835441c767f91a620f109ee6722e57bd (diff) |
coverity#982191 Unchecked return value
Change-Id: Ieb5607513b61b2a5436332bdd8a572fb6a739be7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndnum.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index 270c7d4656b3..06eb0f95ad3d 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -79,8 +79,10 @@ void SwNodes::UpdtOutlineIdx( const SwNode& rNd ) return; const SwNodePtr pSrch = (SwNodePtr)&rNd; + sal_uInt16 nPos; - pOutlineNds->Seek_Entry( pSrch, &nPos ); + if (!pOutlineNds->Seek_Entry(pSrch, &nPos)) + return; if( nPos == pOutlineNds->size() ) // none present for updating ? return; |