diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-12-13 10:46:28 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-13 10:47:59 +0900 |
| commit | 8ea9492cf3505c379d1c573b02db90e6b480cc75 (patch) | |
| tree | cc5ae6566869590cc1946d50314422a16347ae75 /linear-assignment.c | |
| parent | d2e4099968ca1cd6b31b0516cdbafa0520674a8e (diff) | |
| download | git-8ea9492cf3505c379d1c573b02db90e6b480cc75.tar.xz | |
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>
Diffstat (limited to 'linear-assignment.c')
| -rw-r--r-- | linear-assignment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linear-assignment.c b/linear-assignment.c index 5416cbcf40..97b4f75058 100644 --- a/linear-assignment.c +++ b/linear-assignment.c @@ -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; } |
