]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
git-compat-util: introduce MEMZERO_ARRAY() macro
authorToon Claes <toon@iotcl.com>
Wed, 10 Dec 2025 13:13:01 +0000 (14:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Dec 2025 05:44:43 +0000 (14:44 +0900)
commita67b902c94a2f33275a3947a8bcdab03f64ae75e
treec5e00364a71a55934e1d2c13abf31a7474e5478d
parentaf0ed97e1031f2709dbd4fc4f40c4ded711acd49
git-compat-util: introduce MEMZERO_ARRAY() macro

Introduce a new macro MEMZERO_ARRAY() that zeroes the memory allocated
by ALLOC_ARRAY() and friends. And add coccinelle rule to enforce the use
of this macro.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/last-modified.c
compat/simple-ipc/ipc-win32.c
contrib/coccinelle/array.cocci
diff-delta.c
ewah/bitmap.c
git-compat-util.h
hashmap.c
pack-revindex.c