summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:16:35 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitc37b069b9f324c3e68ca5ddfce9588aabe97f346 (patch)
tree52520853cee60379c1605299126c363ad5c7aca0 /src/pack-objects.c
parenta853c5272359f7b5b1f0648cf16cefe7434840b2 (diff)
downloadlibgit2-c37b069b9f324c3e68ca5ddfce9588aabe97f346.tar.gz
khash: avoid using `kh_clear` directly
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r--src/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c
index e2b24e8e5..e463820e4 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -197,7 +197,7 @@ static void rehash(git_packbuilder *pb)
size_t i;
int ret;
- kh_clear(oid, pb->object_ix);
+ git_oidmap_clear(pb->object_ix);
for (i = 0, po = pb->object_list; i < pb->nr_objects; i++, po++) {
pos = kh_put(oid, pb->object_ix, &po->id, &ret);
kh_value(pb->object_ix, pos) = po;