diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-07 14:10:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-07 14:27:14 +0000 |
commit | 67dbf154a2780f42614e668416e99c463857c952 (patch) | |
tree | 91835167f762cbe86b382e84d288c086c6774a5e /sfx2 | |
parent | ac6af669f47655a127eff3d3268437e556d47b46 (diff) |
coverity#440978 Dereference before null check
Change-Id: I9a58c59932fbe164a05f5088881a11f4f2708cee
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 4c332ae6ad2c..d763e69e2c38 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1331,7 +1331,7 @@ bool SfxObjectShell::SaveTo_Impl } // TODO/LATER: error handling - if( rMedium.GetErrorCode() || !pMedium || pMedium->GetErrorCode() || GetErrorCode() ) + if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) return false; AddLog( OUString( OSL_LOG_PREFIX "Locking" ) ); |