summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-06 23:30:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-07 01:20:09 (GMT)
commite010a41216efd85eacc4c0711ea405de4fb20526 (patch)
treea136bf1cba8eb2f0185341de22b0e635d04276f1 /contrib/coccinelle
parent745f6812895b31c02b29bdfe4ae8e5498f776c26 (diff)
downloadgit-e010a41216efd85eacc4c0711ea405de4fb20526.zip
git-e010a41216efd85eacc4c0711ea405de4fb20526.tar.gz
git-e010a41216efd85eacc4c0711ea405de4fb20526.tar.bz2
diff: use hashmap_entry_init on moved_entry.ent
Otherwise, the hashmap_entry.next field appears to remain uninitialized, which can lead to problems when add_lines_to_move_detection calls hashmap_add. I found this through manual inspection when converting hashmap_add callers to take "struct hashmap_entry *". Signed-off-by: Eric Wong <e@80x24.org> Reviewed-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/coccinelle')
0 files changed, 0 insertions, 0 deletions