summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-04-05 22:30:20 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-11-27 11:09:21 +0000
commitcac36006ac512db953544e0daff963657589ae9e (patch)
treee2461f90eb3620f5c59503a37b99ed7c3fca71fa
parent0165e885bcb04cb3134df0dbe32f27b8deeabc65 (diff)
downloadlibgit2-cac36006ac512db953544e0daff963657589ae9e.tar.gz
zstream: use GIT_ASSERT
-rw-r--r--src/zstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zstream.c b/src/zstream.c
index 975ead2f6..a5675676e 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;