]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
hashmap_get takes "const struct hashmap_entry *"
[thirdparty/git.git] / config.c
index 2243d7c3d63effe41ccb942850c391f14871402e..1a1b6675fd22b17ba71bb399b147bfd05a05869c 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1863,7 +1863,7 @@ static struct config_set_element *configset_find_element(struct config_set *cs,
 
        hashmap_entry_init(&k.ent, strhash(normalized_key));
        k.key = normalized_key;
-       found_entry = hashmap_get(&cs->config_hash, &k, NULL);
+       found_entry = hashmap_get(&cs->config_hash, &k.ent, NULL);
        free(normalized_key);
        return found_entry;
 }