mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
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:
commit
af0ed97e10
@ -327,7 +327,7 @@ static void process_parent(struct last_modified *lm,
|
|||||||
if (!(parent->object.flags & PARENT1))
|
if (!(parent->object.flags & PARENT1))
|
||||||
active_paths_free(lm, parent);
|
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);
|
diff_queue_clear(&diff_queued_diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user