Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
zlib: initialize git_zstream in git_deflate_init{,_gzip,_raw}
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 3f1f08f9fd28173e10440c8436d57c14215c342c..c90cf72e0af68d9942e92d3d635fddfb975f05b8 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2091,7
+2091,6
@@
static unsigned char *deflate_it(char *data,
unsigned char *deflated;
git_zstream stream;
- memset(&stream, 0, sizeof(stream));
git_deflate_init(&stream, zlib_compression_level);
bound = git_deflate_bound(&stream, size);
deflated = xmalloc(bound);