git-svn: Always duplicate paths returned from get_log
[gitweb.git] / unpack-trees.c
index 42c7d7d563fe225745a05389f9a6bfd398be4555..f9d12aafba8255401cd4e6d749f8738eb6e0857e 100644 (file)
@@ -128,7 +128,7 @@ static inline int call_unpack_fn(struct cache_entry **src, struct unpack_trees_o
 
 static int unpack_index_entry(struct cache_entry *ce, struct unpack_trees_options *o)
 {
-       struct cache_entry *src[5] = { ce, };
+       struct cache_entry *src[5] = { ce, NULL, };
 
        o->pos++;
        if (ce_stage(ce)) {