summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/ucbstorage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/ucbstorage.cxx')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index b6a8bae3eb2f..4e4e7382137b 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -2618,8 +2618,7 @@ BaseStorageStream* UCBStorage::OpenStream( const OUString& rEleName, StreamMode
{
// check if stream is opened with the same keyword as before
// if not, generate a new stream because it could be encrypted vs. decrypted!
- OString aKey;
- if ( pElement->m_xStream->m_aKey == aKey )
+ if ( pElement->m_xStream->m_aKey.isEmpty() )
{
pElement->m_xStream->PrepareCachedForReopen( nMode );