diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-12-11 14:44:28 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-11 14:44:28 +0900 |
| commit | af0ed97e1031f2709dbd4fc4f40c4ded711acd49 (patch) | |
| tree | 7641d932f697f46764a8e5284ed1cdfc53b5bd94 | |
| parent | 2a04e8c293766a4976ceceb4c663dd2963e0339e (diff) | |
| parent | fe4e60759bfbf4eaca17949d3bbb204bb5c908a2 (diff) | |
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
| -rw-r--r-- | builtin/last-modified.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/last-modified.c b/builtin/last-modified.c index b0ecbdc540..cc5fd2e795 100644 --- a/builtin/last-modified.c +++ b/builtin/last-modified.c @@ -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); } |
