summaryrefslogtreecommitdiff
path: root/detect-compiler
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-10-01 21:16:01 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-23 07:57:47 +0900
commit8628ace2691510dc856e2a9c735706fa8f0620e1 (patch)
treec181c4c78406040d5fb424175d6473bcc2c095f2 /detect-compiler
parentcommit-reach: fix memory and flag leaks (diff)
downloadtgif-8628ace2691510dc856e2a9c735706fa8f0620e1.tar.xz
commit-reach: fix cast in compare_commits_by_gen()
The elements of the array to be sorted are commit pointers, so the comparison function gets handed references to these pointers, not pointers to commit objects. Cast to the right type and dereference once to correctly get the commit reference. Found using Clang's ASan and t5500. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'detect-compiler')
0 files changed, 0 insertions, 0 deletions