[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.3.1] Remove a redundant conditional in tor_zstd_compress_process
commit 617e1da63655a90dba499e8fe11263d3331aacf7
Author: teor <teor2345@xxxxxxxxx>
Date: Fri Jun 16 09:46:46 2017 +1000
Remove a redundant conditional in tor_zstd_compress_process
Part of #22502
---
src/common/compress_zstd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c
index 9143615..11fcf86 100644
--- a/src/common/compress_zstd.c
+++ b/src/common/compress_zstd.c
@@ -321,7 +321,7 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
if (!finish) {
// We're not done with the input, so no need to flush.
return TOR_COMPRESS_OK;
- } else if (state->compress && finish) {
+ } else if (state->compress) {
retval = ZSTD_endStream(state->u.compress_stream, &output);
*out = (char *)output.dst + output.pos;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits