indexer: avoid warning about idx->pack

It must be non-NULL to have a valid `git_indexer`.
This commit is contained in:
Edward Thomson 2017-01-21 15:44:57 -05:00
parent bf339ab0ef
commit 87b7a7051b

View File

@ -1081,7 +1081,7 @@ void git_indexer_free(git_indexer *idx)
git_vector_free_deep(&idx->objects);
if (idx->pack && idx->pack->idx_cache) {
if (idx->pack->idx_cache) {
struct git_pack_entry *pentry;
kh_foreach_value(
idx->pack->idx_cache, pentry, { git__free(pentry); });