author | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Oct 2011 18:42:57 +0000 (11:42 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Oct 2011 18:42:57 +0000 (11:42 -0700) | ||
commit | ea4f9685cb432caf357ad8af56a91877b6d04663 | |
tree | 4171553d03d95eadbe6f2323f9870d29f133bd51 | tree | snapshot |
parent | 9c6bebd14233af291ffb8dde2975b06c76e9ce5f | commit | diff |
unpack_object_header_buffer(): clear the size field upon error
The callers do not use the returned size when the function says
it did not use any bytes and sets the type to OBJ_BAD, so this
should not matter in practice, but it is a good code hygiene
anyway.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The callers do not use the returned size when the function says
it did not use any bytes and sets the type to OBJ_BAD, so this
should not matter in practice, but it is a good code hygiene
anyway.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | diff | blob | history |