xdiff: handle allocation failure in patience diff
commit61f883965f79308b849a55936bee69a33c476c5c
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 16 Feb 2022 10:15:07 +0000 (16 10:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Feb 2022 18:58:13 +0000 (16 10:58 -0800)
tree2c51b839885db9cd6ef8e4127b920b2abbc01476
parent9df0fc3d578acfdeb7fa1914fcf0507adb021fa5
xdiff: handle allocation failure in patience diff

Other users of libxdiff such as libgit2 need to be able to handle
allocation failures. As NULL is a valid return value the function
signature is changed to be able report allocation failures.

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