summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-03-15 15:05:04 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-15 17:51:10 -0700
commit486f4bd183b2b9e3355c7d0d47462951c659613d (patch)
treeb01187eb87030752ca53a36c869bd2197524b7d4 /t/helper
parentGit 2.27.1 (diff)
downloadtgif-486f4bd183b2b9e3355c7d0d47462951c659613d.tar.xz
xcalloc: use CALLOC_ARRAY() when applicable
These are for codebase before Git 2.31 Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-bloom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c
index f0aa80b98e..eb7c011ca6 100644
--- a/t/helper/test-bloom.c
+++ b/t/helper/test-bloom.c
@@ -65,7 +65,7 @@ int cmd__bloom(int argc, const char **argv)
struct bloom_filter filter;
int i = 2;
filter.len = (settings.bits_per_entry + BITS_PER_WORD - 1) / BITS_PER_WORD;
- filter.data = xcalloc(filter.len, sizeof(unsigned char));
+ CALLOC_ARRAY(filter.data, filter.len);
if (argc - 1 < i)
usage(bloom_usage);