cocci: use MEMZERO_ARRAY() a bit more

Existing code in files that have been fairly stable trigger the
"make coccicheck" suggestions due to the new check.

Rewrite them to use MEMZERO_ARRAY()

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2025-12-13 10:46:28 +09:00
parent d2e4099968
commit 8ea9492cf3
3 changed files with 6 additions and 6 deletions

View File

@@ -20,8 +20,8 @@ void compute_assignment(int column_count, int row_count, int *cost,
int i, j, phase;
if (column_count < 2) {
memset(column2row, 0, sizeof(int) * column_count);
memset(row2column, 0, sizeof(int) * row_count);
MEMZERO_ARRAY(column2row, column_count);
MEMZERO_ARRAY(row2column, row_count);
return;
}