aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-03-19 09:49:09 +0000
committerGitHub <[email protected]>2022-03-19 09:49:09 +0000
commit6b7cc11484ac705e1323169c44c08a935ba0ffe2 (patch)
treea4d29945fb91f72ba4cc06b55179c1ff3917a289 /src/core/function
parentMerge pull request #49 from saturneric/develop-2.0.5 (diff)
parent<fix>(ui): fix error in IMAPFolder (diff)
downloadGpgFrontend-6b7cc11484ac705e1323169c44c08a935ba0ffe2.tar.gz
GpgFrontend-6b7cc11484ac705e1323169c44c08a935ba0ffe2.zip
Merge pull request #50 from saturneric/develop-2.0.5v2.0.5
v2.0.5.1
Diffstat (limited to 'src/core/function')
-rw-r--r--src/core/function/ArchiveFileOperator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp
index 1a1ffaec..17f29df1 100644
--- a/src/core/function/ArchiveFileOperator.cpp
+++ b/src/core/function/ArchiveFileOperator.cpp
@@ -231,11 +231,11 @@ void GpgFrontend::ArchiveFileOperator::ExtractArchive(
LOG(ERROR) << "cannot read from stdin";
}
#ifdef WINDOWS
- if ((r = archive_read_open_filename_w(a, archive_path.wstring().c_str(),
- 10240))) {
+ if (archive_read_open_filename_w(a, archive_path.wstring().c_str(),
+ 10240) != ARCHIVE_OK) {
#else
- if ((r = archive_read_open_filename(a, archive_path.u8string().c_str(),
- 10240))) {
+ if (archive_read_open_filename(a, archive_path.u8string().c_str(),
+ 10240) != ARCHIVE_OK) {
#endif
LOG(ERROR) << "archive_read_open_filename() failed: "
<< archive_error_string(a);