]> git.99rst.org Git - git.git/commit
midx.c: replace `xcalloc()` with `CALLOC_ARRAY()`
authorTaylor Blau <redacted>
Tue, 20 Sep 2022 01:55:50 +0000 (21:55 -0400)
committerJunio C Hamano <redacted>
Wed, 21 Sep 2022 17:21:46 +0000 (10:21 -0700)
commitcb6c48cbbc7e196739b42c16c84fa320cc82b5c4
tree1ad65c9e7389ce3e6901e937b60506f2bcceb92d
parentd9f772145069fc0e2aa56a76229e001e0b47248e
midx.c: replace `xcalloc()` with `CALLOC_ARRAY()`

Replace a direct invocation of Git's `xcalloc()` wrapper with the
`CALLOC_ARRAY()` macro instead.

The latter is preferred since it is more conventional in Git's codebase,
but also because it automatically picks the correct value for the record
size.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
midx.c
git clone https://git.99rst.org/PROJECT