Browse Source

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>
maint
Nguyễn Thái Ngọc Duy 12 years ago committed by Junio C Hamano
parent
commit
920734b069
  1. 3
      builtin/index-pack.c

3
builtin/index-pack.c

@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry, @@ -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

Loading…
Cancel
Save