diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-08-28 23:04:17 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-29 22:42:49 -0700 |
commit | 3cd474599f1ede41863c523ddf76c94941b08164 (patch) | |
tree | 3ea9f6249e8c08a865f5d3b309d3c77e007c04d9 /shallow.c | |
parent | 515cc0101943b766fde7aa894827119e332ec033 (diff) | |
download | git-3cd474599f1ede41863c523ddf76c94941b08164.tar.gz |
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 'shallow.c')
-rw-r--r-- | shallow.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ struct commit_list *get_shallow_commits(struct object_array *heads, int depth, { int i = 0, cur_depth = 0; struct commit_list *result = NULL; - struct object_array stack = {0, 0, NULL}; + struct object_array stack = OBJECT_ARRAY_INIT; struct commit *commit = NULL; while (commit || i < heads->nr || stack.nr) { |