]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
hashmap_add takes "struct hashmap_entry *"
[thirdparty/git.git] / ref-filter.c
index 206014c93d2b3175675936cf5993844c58c3d7bb..d939ebc6bbc0bba52b7b109547a96e5b9ed74b55 100644 (file)
@@ -1568,7 +1568,7 @@ static void populate_worktree_map(struct hashmap *map, struct worktree **worktre
                        hashmap_entry_init(&entry->ent,
                                        strhash(worktrees[i]->head_ref));
 
-                       hashmap_add(map, entry);
+                       hashmap_add(map, &entry->ent);
                }
        }
 }