summaryrefslogtreecommitdiff
path: root/src/common/torgzip.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-16 22:28:11 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-16 22:28:11 +0000
commit6d873e57431bf3566bb698ec966bcb5630cadf81 (patch)
tree86c74d2fde5cbd7d594a7d37e89add05fcc03c5b /src/common/torgzip.c
parentde65052312ff9ddd86e492985008bd5ca61d7aa9 (diff)
downloadtor-6d873e57431bf3566bb698ec966bcb5630cadf81.tar.gz
tor-6d873e57431bf3566bb698ec966bcb5630cadf81.zip
don't assert multiple things in the same tor_assert()
svn:r2545
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 */