object.h: Add OBJECT_ARRAY_INIT macro and make use of it.
[git/git.git] / object.h
index 82877c8..4d1d615 100644 (file)
--- a/object.h
+++ b/object.h
@@ -21,6 +21,8 @@ struct object_array {
        } *objects;
 };
 
+#define OBJECT_ARRAY_INIT { 0, 0, NULL }
+
 #define TYPE_BITS   3
 #define FLAG_BITS  27