diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-31 21:06:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-01 22:10:39 +0000 |
commit | 01ed7a331b78e8ca64783fc8d3adefebf782dacb (patch) | |
tree | 34febac73a363f71e5d379eaa75a9ca7b5be9879 /sfx2/source/doc | |
parent | c686be8bb2d4fff469ed753cc3dbf417baa903e9 (diff) |
coverity#440978 Dereference before null check
Change-Id: Ib58f88c0756bdcedeb1f478364e0d89640fd3d11
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 3de8c4918ca8..4c332ae6ad2c 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1201,8 +1201,7 @@ bool SfxObjectShell::SaveTo_Impl } // use UCB for case sensitive/insensitive file name comparison - if ( pMedium - && !pMedium->GetName().equalsIgnoreAsciiCase("private:stream") + if ( !pMedium->GetName().equalsIgnoreAsciiCase("private:stream") && !rMedium.GetName().equalsIgnoreAsciiCase("private:stream") && ::utl::UCBContentHelper::EqualURLs( pMedium->GetName(), rMedium.GetName() ) ) { |