File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2313,11 +2313,9 @@ static void prepare_shallow_update(struct shallow_info *si)
2313
2313
ALLOC_ARRAY (si -> used_shallow , si -> shallow -> nr );
2314
2314
assign_shallow_commits_to_refs (si , si -> used_shallow , NULL );
2315
2315
2316
- si -> need_reachability_test =
2317
- xcalloc (si -> shallow -> nr , sizeof (* si -> need_reachability_test ));
2318
- si -> reachable =
2319
- xcalloc (si -> shallow -> nr , sizeof (* si -> reachable ));
2320
- si -> shallow_ref = xcalloc (si -> ref -> nr , sizeof (* si -> shallow_ref ));
2316
+ CALLOC_ARRAY (si -> need_reachability_test , si -> shallow -> nr );
2317
+ CALLOC_ARRAY (si -> reachable , si -> shallow -> nr );
2318
+ CALLOC_ARRAY (si -> shallow_ref , si -> ref -> nr );
2321
2319
2322
2320
for (i = 0 ; i < si -> nr_ours ; i ++ )
2323
2321
si -> need_reachability_test [si -> ours [i ]] = 1 ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ int cmd__bloom(int argc, const char **argv)
69
69
struct bloom_filter filter ;
70
70
int i = 2 ;
71
71
filter .len = (settings .bits_per_entry + BITS_PER_WORD - 1 ) / BITS_PER_WORD ;
72
- filter .data = xcalloc ( filter .len , sizeof ( unsigned char ) );
72
+ CALLOC_ARRAY ( filter .data , filter .len );
73
73
74
74
if (argc - 1 < i )
75
75
usage (bloom_usage );
You can’t perform that action at this time.
0 commit comments