Commit e23ccfc5 authored by Alexey Ivanov's avatar Alexey Ivanov 🐢
Browse files

libzipplugin.cpp: nullptr

parent c083832c
......@@ -673,7 +673,7 @@ bool LibzipPlugin::extractEntry(zip_t *archive, const QString &entry, const QStr
}
// Handle password-protected files.
std::unique_ptr<zip_file, decltype(&zip_fclose)> zipFile { zip_fopen(archive, entry.toUtf8().constData(), 0), &zip_fclose };
std::unique_ptr<zip_file, decltype(&zip_fclose)> zipFile { nullptr, &zip_fclose };
bool firstTry = true;
while (!zipFile.get()) {
zipFile.reset(zip_fopen(archive, entry.toUtf8().constData(), 0));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment