Subject: Re: [PATCH 1/2] git-compat-util: introduce MEMZERO_ARRAY() macro

From: Junio C Hamano <[email-masked]>
Date: Thu, 11 Dec 2025 12:18:39 +0900

Toon Claes <[email-masked]> writes:

> +@@
> +- memset(ptr, \( 0x0 \| 0 \), n * \( sizeof(T)
> +-                                 \| sizeof(*ptr)
> +-                                 \) )
> ++ MEMZERO_ARRAY(ptr, n)

Shouldn't we be also catching

	memset(array, '\0', sizeof(array[0]) * ARRAY_SIZE(array));

in addition to "0" and "0x0"?