mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user