X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=upload-pack.c;h=92f9530c6572a212c12ac917d774736286325e52;hb=0c4918d1c1722c1faaa909f3f8486d5a0d816538;hp=fc79ddef255a49176acab52c6492c1086b4e6e44;hpb=a0b6a9d2b2b0667bc170c864a05b3ec4635a71bb;p=git.git diff --git a/upload-pack.c b/upload-pack.c index fc79ddef2..92f9530c6 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -482,7 +482,7 @@ static int get_common_commits(void) static void receive_needs(void) { - struct object_array shallows = {0, 0, NULL}; + struct object_array shallows = OBJECT_ARRAY_INIT; static char line[1000]; int len, depth = 0;