diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-11-01 15:31:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-01 15:31:12 -0700 |
commit | b1b7cedcfe351870d4c56f664695a25f8651d5b3 (patch) | |
tree | b3e5105f5ceb6c306d2afaabbefc354fcbb6cddf | |
parent | b919f8404a9e212b3b9d602d4060e440072a0303 (diff) | |
parent | 395c73560b3716a1f74124826b80ab7ec47d7cd8 (diff) | |
download | git-b1b7cedcfe351870d4c56f664695a25f8651d5b3.tar.gz |
Merge branch 'jk/name-hash-dirent'
* jk/name-hash-dirent:
name-hash.c: always initialize dir_next pointer
-rw-r--r-- | name-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/name-hash.c b/name-hash.c index 225dd76995..d8d25c23e9 100644 --- a/name-hash.c +++ b/name-hash.c @@ -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) { |