commit | 9334af7241833d744781efdf147de1a38490021e | [log] [tgz] |
---|---|---|
author | Force Charlie <charlieio@outlook.com> | Sat Jun 20 16:31:25 2020 +0800 |
committer | Force Charlie <charlieio@outlook.com> | Sat Jun 20 16:31:25 2020 +0800 |
tree | eeaaa6793472a97876424b174295d540e0f2551d | |
parent | 87f47fe10d8c1198c1af0b68faca4a67b430b57b [diff] |
Fix zstd process
diff --git a/lib/zip_algorithm_zstd.c b/lib/zip_algorithm_zstd.c index 0c6c3da..1bd25d4 100644 --- a/lib/zip_algorithm_zstd.c +++ b/lib/zip_algorithm_zstd.c
@@ -181,13 +181,13 @@ zip_error_set(ctx->error, ZIP_ER_ZSTD, (int)ret); return ZIP_COMPRESSION_ERROR; } + *length = ctx->out.pos; if (ctx->out.pos == 0) { return ZIP_COMPRESSION_NEED_DATA; } if (ctx->in.size == 0) { return ZIP_COMPRESSION_END; } - *length = ctx->out.pos; return ZIP_COMPRESSION_OK; }