diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 13:13:59 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-08 11:48:04 +0000 |
commit | 012e30066a83dda4d20b87834944c818a91a2aab (patch) | |
tree | caf61ea1113d8b931882aeb440db68c479fbe0ff /sw | |
parent | b5ca532c6d9ebaf8ebe556e9f1cfdfb666f64526 (diff) |
coverity#1158240 Dereference before null check
Change-Id: I5ce6d5514c6bb2298dd00c43d21a43dba55268c3
(cherry picked from commit 6c7b64bad403fb6eeac6e79d356f456f741a00d4)
Reviewed-on: https://gerrit.libreoffice.org/10139
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 7312c7b2e3e3..ed42bf42cf95 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2190,8 +2190,8 @@ long SwWW8ImplReader::Read_And(WW8PLCFManResult* pRes) } while( !pNode->IsTxtNode() && pPaM->GetPoint()->nNode >= 0 ); - // Subtrackt previous text node's length - if( pNode && pNode->IsTxtNode() ) + // Subtract previous text node's length + if( pNode->IsTxtNode() ) { pTxtNode = pNode->GetTxtNode(); if( nLen < pTxtNode->Len() ) |