summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
Diffstat (limited to 'package/source')
-rw-r--r--package/source/zipapi/ZipFile.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 2e2a6216cb4f..60bdced74b5a 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -83,13 +83,10 @@ ZipFile::ZipFile( const rtl::Reference<comphelper::RefCountedMutex>& aMutexHolde
, m_xContext ( rxContext )
, bRecoveryMode( false )
{
- if (bInitialise)
+ if (bInitialise && readCEN() == -1 )
{
- if ( readCEN() == -1 )
- {
- aEntries.clear();
- throw ZipException( "stream data looks to be broken" );
- }
+ aEntries.clear();
+ throw ZipException( "stream data looks to be broken" );
}
}