Skip to content

Commit

Permalink
Merge pull request #8658 from elpaso/bugfix-20783-crash-when-unzippin…
Browse files Browse the repository at this point in the history
…g-corrupted-zip

Do not crash when zipped project is not a valid zip
  • Loading branch information
elpaso committed Dec 12, 2018
2 parents 6de0160 + 9ca85f7 commit 969b789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsziputils.cpp
Expand Up @@ -110,7 +110,7 @@ bool QgsZipUtils::unzip( const QString &zipFilename, const QString &dir, QString
}
else
{
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( zip_strerror( z ) );
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( z ? zip_strerror( z ) : zipFilename );
QgsMessageLog::logMessage( err, QStringLiteral( "QgsZipUtils" ) );
return false;
}
Expand Down

0 comments on commit 969b789

Please sign in to comment.