summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-03-19 22:25:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-19 22:25:37 (GMT)
commiteabacfd9cb58f22ffbacf935bf03747a08640fc7 (patch)
tree90aaab851e4b8340e4e53945d4734c9232c46c29 /t/helper
parenta5828ae6b52137b913b978e16cd2334482eb4c1f (diff)
parent486f4bd183b2b9e3355c7d0d47462951c659613d (diff)
downloadgit-eabacfd9cb58f22ffbacf935bf03747a08640fc7.zip
git-eabacfd9cb58f22ffbacf935bf03747a08640fc7.tar.gz
git-eabacfd9cb58f22ffbacf935bf03747a08640fc7.tar.bz2
Merge branch 'jc/calloc-fix'
Code clean-up. * jc/calloc-fix: xcalloc: use CALLOC_ARRAY() when applicable
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 46e97b0..2a1ae3d 100644
--- a/t/helper/test-bloom.c
+++ b/t/helper/test-bloom.c
@@ -69,7 +69,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);