diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:20:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:23 +0000 |
commit | 0dde0ea5b79bf6ae8532f9ad0550a908f29bc253 (patch) | |
tree | 792d67b1667c5d2f54706c1996ec316aa0e9a3df /cui | |
parent | 9e8ba548cfefc58ac23dffd696048463675b7eb0 (diff) |
coverity#982454 Dereference after null check
Change-Id: I405db209c9277ba47b26d2a0970f4265e190a7c7
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optpath.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 8e8758d4e93c..b2daf493944d 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -667,7 +667,7 @@ IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar ) IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar ) { - if ( pBar && !pBar->GetCurItemId() ) + if (!pBar || !pBar->GetCurItemId()) return 0; if ( !pBar->IsItemMode() ) |