]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fetch.c
hashmap_entry_init takes "struct hashmap_entry *"
[thirdparty/git.git] / builtin / fetch.c
index 717dd14e896117c56101f7f56df0261576c323d0..b7d70eee702bcedbaacafd5b990692cec6bd91f9 100644 (file)
@@ -276,7 +276,7 @@ static struct refname_hash_entry *refname_hash_add(struct hashmap *map,
        size_t len = strlen(refname);
 
        FLEX_ALLOC_MEM(ent, refname, refname, len);
-       hashmap_entry_init(ent, strhash(refname));
+       hashmap_entry_init(&ent->ent, strhash(refname));
        oidcpy(&ent->oid, oid);
        hashmap_add(map, ent);
        return ent;