Re: [PATCH] zlib: initialize git_zstream in git_deflate_init{,_gzip,_raw}

2015-03-05 Thread Junio C Hamano
René Scharfe writes: > Clear the git_zstream variable at the start of git_deflate_init() etc. > so that callers don't have to do that. > > Signed-off-by: Rene Scharfe Nice. "git grep -B1 git_deflate_init" tells me that all existing callers of the function do this memset(). Clearly the above i

[PATCH] zlib: initialize git_zstream in git_deflate_init{,_gzip,_raw}

2015-03-05 Thread René Scharfe
Clear the git_zstream variable at the start of git_deflate_init() etc. so that callers don't have to do that. Signed-off-by: Rene Scharfe --- archive-zip.c | 2 -- builtin/index-pack.c | 1 - builtin/pack-objects.c | 2 -- bulk-checkin.c | 1 - diff.c | 1 - fa