summaryrefslogtreecommitdiff
path: root/src/common/torgzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r--src/common/torgzip.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 4bd4381972..660ab0e05f 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -53,7 +53,9 @@ tor_gzip_compress(char **out, size_t *out_len,
size_t out_size;
off_t offset;
- tor_assert(out && out_len && in);
+ tor_assert(out);
+ tor_assert(out_len);
+ tor_assert(in);
if (method == GZIP_METHOD && !is_gzip_supported()) {
/* Old zlib version don't support gzip in deflateInit2 */
@@ -136,7 +138,9 @@ tor_gzip_uncompress(char **out, size_t *out_len,
size_t out_size;
off_t offset;
- tor_assert(out && out_len && in);
+ tor_assert(out);
+ tor_assert(out_len);
+ tor_assert(in);
if (method == GZIP_METHOD && !is_gzip_supported()) {
/* Old zlib version don't support gzip in inflateInit2 */