X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shallow.c;h=a0363dea203d2a06e985bb4e140ffc675428cbf8;hb=b476064544b9a64d062acc5e3c6be831ebb721cb;hp=4d90eda19efe0a80c1cb39e8897ab3ed5e6fcf56;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/shallow.c b/shallow.c index 4d90eda19..a0363dea2 100644 --- a/shallow.c +++ b/shallow.c @@ -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) {