X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=shallow.c;h=a0363dea203d2a06e985bb4e140ffc675428cbf8;hb=6578483036695820d05aa7cf482a38169ad321bf;hp=4d90eda19efe0a80c1cb39e8897ab3ed5e6fcf56;hpb=1fbb58b4153e90eda08c2b022ee32d90729582e6;p=thirdparty%2Fgit.git diff --git a/shallow.c b/shallow.c index 4d90eda19e..a0363dea20 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) {