summaryrefslogtreecommitdiff
path: root/t/t4018
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2021-08-21 14:52:40 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-08-24 14:43:45 -0700
commit95b4ff3931064ff222e87eecf6af504ba55069d7 (patch)
tree4a328ce202ecc18389187d82f51164eadde56311 /t/t4018
parentGit 2.32 (diff)
downloadtgif-95b4ff3931064ff222e87eecf6af504ba55069d7.tar.xz
compat: let git_mmap use malloc(3) directly
xmalloc() dies on error, allows zero-sized allocations and enforces GIT_ALLOC_LIMIT for testing. Our mmap replacement doesn't need any of that. Let's cut out the wrapper, reject zero-sized requests as required by POSIX and use malloc(3) directly. Allocation errors were needlessly handled by git_mmap() before; this code becomes reachable now. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018')
0 files changed, 0 insertions, 0 deletions