Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Ark
Commits
e23ccfc5
Commit
e23ccfc5
authored
Aug 24, 2020
by
Alexey Ivanov
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libzipplugin.cpp: nullptr
parent
c083832c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/libzipplugin/libzipplugin.cpp
plugins/libzipplugin/libzipplugin.cpp
+1
-1
No files found.
plugins/libzipplugin/libzipplugin.cpp
View file @
e23ccfc5
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment