Subject: Re: [PATCH v2] last-modified: fix use of uninitialized memory

From: Junio C Hamano <[email-masked]>
Date: Tue, 09 Dec 2025 21:18:06 +0900

Toon Claes <[email-masked]> writes:

> Junio C Hamano <[email-masked]> writes:
>
>> Sorry, but hasn't the old one already been cooking in 'next'?
>
> Okay, fine by me. Let's abandon this v2 then.

Understood. I however agree with Patrick that rewriting

    memset(ptr, '\0', sizeof(*ptr) * nr)

to use CLEAR_ARRAY(), not limited to last-modified but everywhere in
the codebase, may not be a bad idea.  It would be a good exercise to
hone our Coccinelle skill ;-)