]> asedeno.scripts.mit.edu Git - git.git/blobdiff - unpack-trees.c
Makefile: -lpthread may still be necessary when libc has only pthread stubs
[git.git] / unpack-trees.c
index 75f54cac97f62ddaad736c2cd582cc6cdeaaebfa..69782b1cc2139268fc87effc8e4ce99d3d8ee6d5 100644 (file)
@@ -287,9 +287,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) {