Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87b7a70

Browse files
author
Edward Thomson
committed
indexer: avoid warning about idx->pack
It must be non-NULL to have a valid `git_indexer`.
1 parent bf339ab commit 87b7a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ void git_indexer_free(git_indexer *idx)
10811081

10821082
git_vector_free_deep(&idx->objects);
10831083

1084-
if (idx->pack && idx->pack->idx_cache) {
1084+
if (idx->pack->idx_cache) {
10851085
struct git_pack_entry *pentry;
10861086
kh_foreach_value(
10871087
idx->pack->idx_cache, pentry, { git__free(pentry); });

0 commit comments

Comments
 (0)