commit | 87b7a7051b8aa50bddc806a46240e7b15e3e23cc | [log] [tgz] |
---|---|---|
author | Edward Thomson <ethomson@github.com> | Sat Jan 21 15:44:57 2017 -0500 |
committer | Edward Thomson <ethomson@github.com> | Sat Jan 21 15:44:57 2017 -0500 |
tree | 178848ffdf5f1f2c6f2f4ffe71d08e21b054401a | |
parent | bf339ab0ef64754dcc8e7506dd0d23629815a65a [diff] |
indexer: avoid warning about `idx->pack` It must be non-NULL to have a valid `git_indexer`.
diff --git a/src/indexer.c b/src/indexer.c index 805c36e..951d717 100644 --- a/src/indexer.c +++ b/src/indexer.c
@@ -1081,7 +1081,7 @@ 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); });