aboutsummaryrefslogtreecommitdiffstats
path: root/object.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 10:21:48 -0700
committerJunio C Hamano <gitster@pobox.com>2021-10-11 10:21:48 -0700
commit404c4a54624c3e0ea9066809344a6269c16de69f (patch)
tree53e4675199a1cfafdaea4f3304564446375812ed /object.h
parent859a585bdf9baa257c08a50895d9829171a5ad46 (diff)
parent538835d2ac151abbe90058becfc0dc061d33302c (diff)
downloadgit-404c4a54624c3e0ea9066809344a6269c16de69f.tar.gz
Merge branch 'ab/designated-initializers'
Code clean-up. * ab/designated-initializers: cbtree.h: define cb_init() in terms of CBTREE_INIT *.h: move some *_INIT to designated initializers *.h _INIT macros: don't specify fields equal to 0 *.[ch] *_INIT macros: use { 0 } for a "zero out" idiom submodule-config.h: remove unused SUBMODULE_INIT macro
Diffstat (limited to 'object.h')
-rw-r--r--object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.h b/object.h
index 549f2d256b..cb556ab775 100644
--- a/object.h
+++ b/object.h
@@ -55,7 +55,7 @@ struct object_array {
} *objects;
};
-#define OBJECT_ARRAY_INIT { 0, 0, NULL }
+#define OBJECT_ARRAY_INIT { 0 }
/*
* object flag allocation: