]> git.ipfire.org Git - thirdparty/git.git/blobdiff - negotiator/default.c
Merge branch 'en/ort-perf-batch-9'
[thirdparty/git.git] / negotiator / default.c
index 4b78f6bf36a0479a55934a6e4ac4c288775217f5..434189ae5dc64a2b6bbdac01d82f4f284f9855c6 100644 (file)
@@ -167,7 +167,7 @@ void default_negotiator_init(struct fetch_negotiator *negotiator)
        negotiator->next = next;
        negotiator->ack = ack;
        negotiator->release = release;
-       negotiator->data = ns = xcalloc(1, sizeof(*ns));
+       negotiator->data = CALLOC_ARRAY(ns, 1);
        ns->rev_list.compare = compare_commits_by_commit_date;
 
        if (marked)