diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:49:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:22 +0000 |
commit | 56304dc45ef8e5db2923323405cb380ddd384f58 (patch) | |
tree | 22eeba94783c8c3ca86694994dbd49a970d55782 /sw | |
parent | 155cc83a77eba659a99c3cab7c21e3cb0b8de647 (diff) |
coverity#735950 Dereference after null check
Change-Id: I3417231c570333a9797fb4efe24f21292e99c6f3
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 617f21d2306d..6a3920980a86 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -2970,7 +2970,7 @@ sal_uInt8* WW8PLCFx_Fc_FKP::GetSprmsAndPos(WW8_FC& rStart, WW8_FC& rEnd, sal_Int return 0; } - sal_uInt8* pPos = pFkp->Get( rStart, rEnd, rLen ); + sal_uInt8* pPos = pFkp ? pFkp->Get( rStart, rEnd, rLen ) : NULL; if( rStart == WW8_FC_MAX ) //Not found return 0; return pPos; |