Code

Merge branch 'jc/rev-list-ancestry-path'
[git.git] / unpack-trees.c
index 490cd5f6f4779cbff68405722b98e522cbeb3cde..85045fd03fd7ab2a2ad8daf5ec584e010372673b 100644 (file)
@@ -279,9 +279,11 @@ static void add_same_unmerged(struct cache_entry *ce,
 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) {