diff mbox series

SQUASH??? calloc(nmemb,size)

Message ID xmqqa6r9efgh.fsf@gitster.g (mailing list archive)
State New, archived
Headers show
Series SQUASH??? calloc(nmemb,size) | expand

Commit Message

Junio C Hamano March 11, 2021, 6:02 p.m. UTC
Please squash this in to an appropriate step in your series;
otherwise it triggers a Coccinelle check when merged to 'seen'.

Thanks.

 refs/reftable-backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Han-Wen Nienhuys March 15, 2021, 10:24 a.m. UTC | #1
On Thu, Mar 11, 2021 at 7:02 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> Please squash this in to an appropriate step in your series;
> otherwise it triggers a Coccinelle check when merged to 'seen'.
>

folded in, thanks.
diff mbox series

Patch

diff --git a/refs/reftable-backend.c b/refs/reftable-backend.c
index b7d12ca91d..6faad8ce50 100644
--- a/refs/reftable-backend.c
+++ b/refs/reftable-backend.c
@@ -996,7 +996,7 @@  static struct ref_iterator_vtable git_reftable_reflog_ref_iterator_vtable = {
 static struct ref_iterator *
 git_reftable_reflog_iterator_begin(struct ref_store *ref_store)
 {
-	struct git_reftable_reflog_ref_iterator *ri = xcalloc(sizeof(*ri), 1);
+	struct git_reftable_reflog_ref_iterator *ri = xcalloc(1, sizeof(*ri));
 	struct git_reftable_ref_store *refs =
 		(struct git_reftable_ref_store *)ref_store;