misc *.c: use designated initializers for struct assignments
Change a few miscellaneous non-designated initializer assignments to use designated initializers. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
e2f8acb6a0
commit
501036492b
@ -274,10 +274,11 @@ static struct cached_object {
|
||||
static int cached_object_nr, cached_object_alloc;
|
||||
|
||||
static struct cached_object empty_tree = {
|
||||
{ EMPTY_TREE_SHA1_BIN_LITERAL },
|
||||
OBJ_TREE,
|
||||
"",
|
||||
0
|
||||
.oid = {
|
||||
.hash = EMPTY_TREE_SHA1_BIN_LITERAL,
|
||||
},
|
||||
.type = OBJ_TREE,
|
||||
.buf = "",
|
||||
};
|
||||
|
||||
static struct cached_object *find_cached_object(const struct object_id *oid)
|
||||
|
||||
Reference in New Issue
Block a user