diff options
author | René Scharfe <l.s.r@web.de> | 2021-07-03 14:57:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-06 13:07:50 -0700 |
commit | 5632e838f8fa73abfce3f66d2781b8e6d7b14001 (patch) | |
tree | 8221b4be27b61e43ea71823c7177e580d60b8a30 /t/t4018/bash-bashism-style-compact | |
parent | Git 2.32 (diff) | |
download | tgif-5632e838f8fa73abfce3f66d2781b8e6d7b14001.tar.xz |
khash: clarify that allocations never fail
We use our standard allocation functions and macros (xcalloc,
ALLOC_ARRAY, REALLOC_ARRAY) in our version of khash.h. They terminate
the program on error instead, so code that's using them doesn't have to
handle allocation failures. Make this behavior explicit by turning
kh_resize_ into a void function and removing the related unreachable
error handling code.
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/bash-bashism-style-compact')
0 files changed, 0 insertions, 0 deletions