diff --git a/unpack-trees.c b/unpack-trees.c
index 490cd5f6f4779cbff68405722b98e522cbeb3cde..85045fd03fd7ab2a2ad8daf5ec584e010372673b 100644 (file)
--- a/unpack-trees.c
+++ b/unpack-trees.c
static int unpack_index_entry(struct cache_entry *ce,
struct unpack_trees_options *o)
{
- struct cache_entry *src[5] = { ce, NULL, };
+ struct cache_entry *src[5] = { NULL };
int ret;
+ src[0] = ce;
+
mark_ce_used(ce, o);
if (ce_stage(ce)) {
if (o->skip_unmerged) {