promisor-remote: fix xcalloc() argument order
commitc4bbd9bb8fd307c3c8be16121391416a5685ffe1
authorSZEDER Gábor <szeder.dev@gmail.com>
Tue, 23 Aug 2022 09:57:33 +0000 (23 11:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Aug 2022 15:50:39 +0000 (24 08:50 -0700)
treef0dd10006e61f59fea06a649f5c710ea4a01a66c
parent359da658ae32d9a7e5e93ac173fc221352b62917
promisor-remote: fix xcalloc() argument order

Pass the number of elements first and their size second, as expected
by xcalloc().

Patch generated with:

  make SPATCH_FLAGS=--recursive-includes contrib/coccinelle/xcalloc.cocci.patch

Our default SPATCH_FLAGS ('--all-includes') doesn't catch this
transformation by default, unless used in combination with a large-ish
SPATCH_BATCH_SIZE which happens to put 'promisor-remote.c' with a file
that includes 'repository.h' directly in the same batch.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c