Skip to content

Commit

Permalink
Merge branch 'jk/name-hash-dirent'
Browse files Browse the repository at this point in the history
* jk/name-hash-dirent:
  name-hash.c: always initialize dir_next pointer
  • Loading branch information
Junio C Hamano committed Nov 1, 2011
2 parents b919f84 + 395c735 commit b1b7ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion name-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b1b7ced

Please sign in to comment.