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:

committed by
Junio C Hamano

parent
6035d6aad8
commit
920734b069
@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
|
|||||||
int eaten;
|
int eaten;
|
||||||
void *buf = (void *) data;
|
void *buf = (void *) data;
|
||||||
|
|
||||||
if (!buf)
|
assert(data && "data can only be NULL for large _blobs_");
|
||||||
buf = new_data = get_data_from_pack(obj_entry);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we do not need to free the memory here, as the
|
* we do not need to free the memory here, as the
|
||||||
|
Reference in New Issue
Block a user