]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
hashmap_entry_init takes "struct hashmap_entry *"
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index cd297ee4bdbe48b04696ddf923273a857ce59884..c43ec59c6e845d55848c6e8474e6a54f2022b222 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -1796,7 +1796,7 @@ static struct ref_store_hash_entry *alloc_ref_store_hash_entry(
        struct ref_store_hash_entry *entry;
 
        FLEX_ALLOC_STR(entry, name, name);
-       hashmap_entry_init(entry, strhash(name));
+       hashmap_entry_init(&entry->ent, strhash(name));
        entry->refs = refs;
        return entry;
 }