1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 13:57:54 +01:00

index-pack: remove dead code (it should never happen)

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2013-05-26 08:16:16 +07:00 committed by Junio C Hamano
parent 6035d6aad8
commit 920734b069

View file

@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
int eaten;
void *buf = (void *) data;
if (!buf)
buf = new_data = get_data_from_pack(obj_entry);
assert(data && "data can only be NULL for large _blobs_");
/*
* we do not need to free the memory here, as the