Skip to content

Commit b1b7ced

Browse files
committed
Merge branch 'jk/name-hash-dirent'
* jk/name-hash-dirent: name-hash.c: always initialize dir_next pointer
2 parents b919f84 + 395c735 commit b1b7ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

name-hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void hash_index_entry(struct index_state *istate, struct cache_entry *ce)
7474
if (ce->ce_flags & CE_HASHED)
7575
return;
7676
ce->ce_flags |= CE_HASHED;
77-
ce->next = NULL;
77+
ce->next = ce->dir_next = NULL;
7878
hash = hash_name(ce->name, ce_namelen(ce));
7979
pos = insert_hash(hash, ce, &istate->name_hash);
8080
if (pos) {

0 commit comments

Comments
 (0)