summaryrefslogtreecommitdiff
path: root/builtin/difftool.c
diff options
context:
space:
mode:
authorLibravatar Eric Wong <e@80x24.org>2019-10-06 23:30:24 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-07 10:20:09 +0900
commite010a41216efd85eacc4c0711ea405de4fb20526 (patch)
treea136bf1cba8eb2f0185341de22b0e635d04276f1 /builtin/difftool.c
parentFirst batch after Git 2.23 (diff)
downloadtgif-e010a41216efd85eacc4c0711ea405de4fb20526.tar.xz
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 'builtin/difftool.c')
0 files changed, 0 insertions, 0 deletions