Merge branch 'tc/last-modified-active-paths-optimization' into tc/memzero-array

* tc/last-modified-active-paths-optimization:
  last-modified: fix use of uninitialized memory
This commit is contained in:
Junio C Hamano
2025-12-11 14:44:28 +09:00

View File

@@ -327,7 +327,7 @@ static void process_parent(struct last_modified *lm,
if (!(parent->object.flags & PARENT1))
active_paths_free(lm, parent);
memset(lm->scratch->words, 0x0, lm->scratch->word_alloc);
memset(lm->scratch->words, 0x0, lm->scratch->word_alloc * sizeof(eword_t));
diff_queue_clear(&diff_queued_diff);
}