diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-12-13 10:39:23 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-13 10:39:23 +0900 |
| commit | 6362c9ce5eb18f699affbb2a7b357cb9b469105c (patch) | |
| tree | 49ca64dd03d243c58c1ce3fb8d68db9dabd5b7a5 /builtin | |
| parent | 2a04e8c293766a4976ceceb4c663dd2963e0339e (diff) | |
| parent | 467860bc0b0447093ae97bcecf1655131732338f (diff) | |
| download | git-6362c9ce5eb18f699affbb2a7b357cb9b469105c.tar.xz | |
Merge branch 'tc/memzero-array' into jc/memzero-array
* tc/memzero-array:
contrib/coccinelle: pass include paths to spatch(1)
git-compat-util: introduce MEMZERO_ARRAY() macro
last-modified: fix use of uninitialized memory
Diffstat (limited to 'builtin')
| -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..ac5387e861 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); + MEMZERO_ARRAY(lm->scratch->words, lm->scratch->word_alloc); diff_queue_clear(&diff_queued_diff); } |
