]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
hashmap_add takes "struct hashmap_entry *"
[thirdparty/git.git] / config.c
index 08d866e7dea8283f97831f38832bfe57a0620437..2243d7c3d63effe41ccb942850c391f14871402e 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1885,7 +1885,7 @@ static int configset_add_value(struct config_set *cs, const char *key, const cha
                hashmap_entry_init(&e->ent, strhash(key));
                e->key = xstrdup(key);
                string_list_init(&e->value_list, 1);
-               hashmap_add(&cs->config_hash, e);
+               hashmap_add(&cs->config_hash, &e->ent);
        }
        si = string_list_append_nodup(&e->value_list, xstrdup_or_null(value));