Skip to content

Commit

Permalink
index-pack: remove dead code (it should never happen)
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed May 28, 2013
1 parent 6035d6a commit 920734b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin/index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 920734b

Please sign in to comment.