sha1_file.c: don't ignore an error condition in sha1_loose_object_info()
Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
2b87c45ba6
commit
9ba630318f
@ -1461,7 +1461,7 @@ static int sha1_loose_object_info(const unsigned char *sha1, char *type, unsigne
|
|||||||
if (unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr)) < 0)
|
if (unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr)) < 0)
|
||||||
status = error("unable to unpack %s header",
|
status = error("unable to unpack %s header",
|
||||||
sha1_to_hex(sha1));
|
sha1_to_hex(sha1));
|
||||||
if (parse_sha1_header(hdr, type, &size) < 0)
|
else if (parse_sha1_header(hdr, type, &size) < 0)
|
||||||
status = error("unable to parse %s header", sha1_to_hex(sha1));
|
status = error("unable to parse %s header", sha1_to_hex(sha1));
|
||||||
else {
|
else {
|
||||||
status = 0;
|
status = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user