mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 11:50:27 +00:00
indexer: avoid warning about idx->pack
It must be non-NULL to have a valid `git_indexer`.
This commit is contained in:
parent
bf339ab0ef
commit
87b7a7051b
@ -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); });
|
||||
|
Loading…
Reference in New Issue
Block a user