]> Kevux Git Server - rit/commit
xdiff: introduce xdl_calloc
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 8 Jul 2022 16:25:17 +0000 (16:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jul 2022 16:34:30 +0000 (09:34 -0700)
commit18aae7e21e1a88c75adb38aa2555e0b1928b137d
tree1f48acc01e9e7b01cf8380dad5a9f4277db437b5
parentabf04bdaa845a6650d1f44b9f5914df442559d75
xdiff: introduce xdl_calloc

In preparation for introducing XDL_CALLOC_ARRAY() use calloc() to
obtain zeroed out memory rather than malloc() followed by memset(). To
try and keep the lines a reasonable length this commit also stops
casting the pointer returned by calloc() as this is unnecessary.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xdiff.h
xdiff/xhistogram.c
xdiff/xpatience.c
xdiff/xprepare.c