summaryrefslogtreecommitdiff
path: root/src/sortedcache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 15:31:12 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitf31cb45ad2ca46cc743dfadf5ac8b916cbe4ea9c (patch)
treeed98640b9181f3cfae95e63711ca7200c7e7be3d /src/sortedcache.c
parenta8cd560b10149208aabcfe515b2e1b6c5be6388f (diff)
downloadlibgit2-f31cb45ad2ca46cc743dfadf5ac8b916cbe4ea9c.tar.gz
khash: avoid using `kh_put` directly
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r--src/sortedcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sortedcache.c b/src/sortedcache.c
index 199fa2484..e9e50636b 100644
--- a/src/sortedcache.c
+++ b/src/sortedcache.c
@@ -294,7 +294,7 @@ int git_sortedcache_upsert(void **out, git_sortedcache *sc, const char *key)
item_key = ((char *)item) + sc->item_path_offset;
memcpy(item_key, key, keylen);
- pos = kh_put(str, sc->map, item_key, &error);
+ pos = git_strmap_put(sc->map, item_key, &error);
if (error < 0)
goto done;