Commit cac36006ac512db953544e0daff963657589ae9e

Edward Thomson 2020-04-05T22:30:20

zstream: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/zstream.c b/src/zstream.c
index 975ead2..a567567 100644
--- a/src/zstream.c
+++ b/src/zstream.c
@@ -156,7 +156,7 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream)
 	}
 
 	/* either we finished the input or we did not flush the data */
-	assert(zstream->in_len > 0 || zstream->flush == Z_FINISH);
+	GIT_ASSERT(zstream->in_len > 0 || zstream->flush == Z_FINISH);
 
 	/* set out_size to number of bytes actually written to output */
 	*out_len = *out_len - out_remain;