author | Junio C Hamano <gitster@pobox.com> | |
Fri, 11 Jan 2008 07:26:09 +0000 (23:26 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 11 Jan 2008 07:27:39 +0000 (23:27 -0800) | ||
commit | 8c3c7b2adbac9d4fce1fcec0ca03cfb6535d5af3 | |
tree | d3686fbfb61bf76e4ad5320d32688ae169a3e872 | tree | snapshot |
parent | 95693d45ee1c1d4b76cac672636cf31229186a18 | commit | diff |
pack-objects: remove redundant and wrong call to deflateEnd()
We somehow called deflateEnd() on a stream that we have called
deflateEnd() on already.
In fact, the second deflateEnd() has always been returning
Z_STREAM_ERROR. We just never checked the error return from
that particular deflateEnd().
The first one returns 0 for success. We might want to tighten
the check even more to check that.
Noticed by Marco.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We somehow called deflateEnd() on a stream that we have called
deflateEnd() on already.
In fact, the second deflateEnd() has always been returning
Z_STREAM_ERROR. We just never checked the error return from
that particular deflateEnd().
The first one returns 0 for success. We might want to tighten
the check even more to check that.
Noticed by Marco.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history |