From 2e2d736ccbb21daae91603732c87d5375ede1b47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Nov 2018 13:27:23 +0200 Subject: loplugin:collapseif in framework..sal Change-Id: I3068b18f5cff024a48a8f8c68d69cadad30fe4d5 Reviewed-on: https://gerrit.libreoffice.org/62953 Tested-by: Jenkins Reviewed-by: Noel Grandin --- package/source/zipapi/ZipFile.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'package/source') 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& 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" ); } } -- cgit