summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-03-17 18:27:17 +0100
committerJunio C Hamano <gitster@pobox.com>2022-03-17 10:36:42 -0700
commit501036492b74ad2f3bf9af70fc90056245b60525 (patch)
tree380c71802de0d37e35d5ca8e8984b39818a5a222 /attr.c
parente2f8acb6a0399c7480574d23c48c437e4849399a (diff)
downloadgit-501036492b74ad2f3bf9af70fc90056245b60525.tar.gz
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>
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attr.c b/attr.c
index 79adaa50ea..9ad12578cc 100644
--- a/attr.c
+++ b/attr.c
@@ -80,7 +80,7 @@ static int attr_hash_entry_cmp(const void *unused_cmp_data,
* Access to this dictionary must be surrounded with a mutex.
*/
static struct attr_hashmap g_attr_hashmap = {
- HASHMAP_INIT(attr_hash_entry_cmp, NULL)
+ .map = HASHMAP_INIT(attr_hash_entry_cmp, NULL),
};
/*