You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sz...@apache.org on 2021/05/26 12:46:23 UTC
[nifi-minifi-cpp] 15/17: Update
extensions/libarchive/CompressContent.h
This is an automated email from the ASF dual-hosted git repository.
szaszm pushed a commit to branch MINIFICPP-1507
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit e8df736bc9cf284a8fc1ffe4e36ecbf6e8db586f
Author: Márton Szász <sz...@gmail.com>
AuthorDate: Thu Mar 25 10:22:43 2021 +0000
Update extensions/libarchive/CompressContent.h
Co-authored-by: adamdebreceni <64...@users.noreply.github.com>
---
extensions/libarchive/CompressContent.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/libarchive/CompressContent.h b/extensions/libarchive/CompressContent.h
index 8f456d8..aae9492 100644
--- a/extensions/libarchive/CompressContent.h
+++ b/extensions/libarchive/CompressContent.h
@@ -384,7 +384,7 @@ public:
break;
} else {
const auto writeret = outputStream_->write(buffer.data(), ret);
- if (!io::isError(writeret) && gsl::narrow<size_t>(writeret) != ret) {
+ if (io::isError(writeret) || gsl::narrow<size_t>(writeret) != ret) {
return -1;
}
read_size += ret;