summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-08-29 02:04:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-30 05:42:49 (GMT)
commit3cd474599f1ede41863c523ddf76c94941b08164 (patch)
tree3ea9f6249e8c08a865f5d3b309d3c77e007c04d9 /reachable.c
parent515cc0101943b766fde7aa894827119e332ec033 (diff)
downloadgit-3cd474599f1ede41863c523ddf76c94941b08164.zip
git-3cd474599f1ede41863c523ddf76c94941b08164.tar.gz
git-3cd474599f1ede41863c523ddf76c94941b08164.tar.bz2
object.h: Add OBJECT_ARRAY_INIT macro and make use of it.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reachable.c')
-rw-r--r--reachable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reachable.c b/reachable.c
index b515fa2..a03fabf 100644
--- a/reachable.c
+++ b/reachable.c
@@ -90,7 +90,7 @@ static void walk_commit_list(struct rev_info *revs)
{
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)