]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
test-lib: Use $TEST_DIRECTORY or $GIT_BUILD_DIR instead of $(pwd) and ../
[thirdparty/git.git] / unpack-trees.c
index e8f03f51541472ead12d55672ba4422f97a3c113..8cf0da317d8afe4bfe3cae7051e3a385d44cf7ef 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) {