Merge branch 'jk/name-hash-dirent'
* jk/name-hash-dirent: name-hash.c: always initialize dir_next pointer
This commit is contained in:
commit
b1b7cedcfe
@ -74,7 +74,7 @@ static void hash_index_entry(struct index_state *istate, struct cache_entry *ce)
|
||||
if (ce->ce_flags & CE_HASHED)
|
||||
return;
|
||||
ce->ce_flags |= CE_HASHED;
|
||||
ce->next = NULL;
|
||||
ce->next = ce->dir_next = NULL;
|
||||
hash = hash_name(ce->name, ce_namelen(ce));
|
||||
pos = insert_hash(hash, ce, &istate->name_hash);
|
||||
if (pos) {
|
||||
|
Loading…
Reference in New Issue
Block a user