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>
This commit is contained in:

committed by
Junio C Hamano

parent
515cc01019
commit
3cd474599f
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user