diff --git a/reachable.c b/reachable.c
index 3b1c18ff9b9060d0dd437ce89aedb8871c66c54c..a03fabf060081e9fa5e0d753cd0d9cf4bca5062e 100644 (file)
--- a/reachable.c
+++ b/reachable.c
obj->flags |= SEEN;
if (parse_tree(tree) < 0)
die("bad tree object %s", sha1_to_hex(obj->sha1));
obj->flags |= SEEN;
if (parse_tree(tree) < 0)
die("bad tree object %s", sha1_to_hex(obj->sha1));
- name = xstrdup(name);
add_object(obj, p, path, name);
me.up = path;
me.elem = name;
add_object(obj, p, path, name);
me.up = path;
me.elem = name;
{
int i;
struct commit *commit;
{
int i;
struct commit *commit;
- struct object_array objects = { 0, 0, NULL };
+ struct object_array objects = OBJECT_ARRAY_INIT;
/* Walk all commits, process their trees */
while ((commit = get_revision(revs)) != NULL)
/* Walk all commits, process their trees */
while ((commit = get_revision(revs)) != NULL)