author | Johannes Sixt <j6t@kdbg.org> | |
Tue, 1 Nov 2011 22:21:06 +0000 (23:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 1 Nov 2011 22:29:18 +0000 (15:29 -0700) | ||
commit | 395c73560b3716a1f74124826b80ab7ec47d7cd8 | |
tree | a2f7f79fc072a3dee9cd75c595fb31b5197e3299 | tree | snapshot |
parent | 2548183badb98d62079beea62f9d2e1f47e99902 | commit | diff |
name-hash.c: always initialize dir_next pointer
Test t2021-checkout-overwrite.sh reveals a segfault in 'git add' on a
case-insensitive file system when git is compiled with XMALLOC_POISON
defined. The reason is that 2548183b (fix phantom untracked files when
core.ignorecase is set) added a new member dir_next to struct cache_entry,
but forgot to initialize it in all cases.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Test t2021-checkout-overwrite.sh reveals a segfault in 'git add' on a
case-insensitive file system when git is compiled with XMALLOC_POISON
defined. The reason is that 2548183b (fix phantom untracked files when
core.ignorecase is set) added a new member dir_next to struct cache_entry,
but forgot to initialize it in all cases.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
name-hash.c | diff | blob | history |