We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9839cce + 5336d50 commit 03b0198Copy full SHA for 03b0198
ref-filter.c
@@ -2239,12 +2239,14 @@ static void reach_filter(struct ref_array *array,
2239
{
2240
struct rev_info revs;
2241
int i, old_nr;
2242
- struct commit **to_clear = xcalloc(sizeof(struct commit *), array->nr);
+ struct commit **to_clear;
2243
struct commit_list *cr;
2244
2245
if (!check_reachable)
2246
return;
2247
2248
+ to_clear = xcalloc(sizeof(struct commit *), array->nr);
2249
+
2250
repo_init_revisions(the_repository, &revs, NULL);
2251
2252
for (i = 0; i < array->nr; i++) {
0 commit comments