X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=upload-pack.c;h=92f9530c6572a212c12ac917d774736286325e52;hb=8713feb16dd6a472828bbdcf914a1c8f5c6810a2;hp=fc79ddef255a49176acab52c6492c1086b4e6e44;hpb=613e4e5f4046ee36f40199cbaeb9f35442d24378;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;