diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-25 14:14:12 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | 64e46dc3b54bb7071b5d21e16db8ebf5a44eb8ed (patch) | |
tree | 14ed6189acd384bb3b7f8ae77fd9178a98d86aec /src/pack-objects.c | |
parent | 036daa59e94bbe1a14ccd8fa018618393a0c62fb (diff) | |
download | libgit2-64e46dc3b54bb7071b5d21e16db8ebf5a44eb8ed.tar.gz |
khash: avoid using `kh_end` directly
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 203816710..3517de479 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -517,7 +517,7 @@ static int cb_tag_foreach(const char *name, git_oid *oid, void *data) GIT_UNUSED(name); pos = kh_get(oid, pb->object_ix, oid); - if (pos == kh_end(pb->object_ix)) + if (!git_oidmap_valid_index(pb->object_ix, pos)) return 0; po = kh_value(pb->object_ix, pos); |