diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-03-15 17:56:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-15 17:56:07 -0700 |
commit | 1c57cc70ec26529a26392539fc888486bb89b7fd (patch) | |
tree | 61b05e45176c3d84885f43595a21d8ad05afda28 /t/t1430-bad-ref-name.sh | |
parent | use CALLOC_ARRAY (diff) | |
download | tgif-1c57cc70ec26529a26392539fc888486bb89b7fd.tar.xz |
cocci: allow xcalloc(1, size)
Allocating a pre-cleared single element is quite common and it is
misleading to use CALLOC_ARRAY(); these allocations that would be
affected without this change are not allocating an array.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1430-bad-ref-name.sh')
0 files changed, 0 insertions, 0 deletions