Message ID | xmqqa6r9efgh.fsf@gitster.g (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | SQUASH??? calloc(nmemb,size) | expand |
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 --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;