]> git.ipfire.org Git - thirdparty/git.git/blobdiff - promisor-remote.c
Git 2.31.7
[thirdparty/git.git] / promisor-remote.c
index 3c572b1c811e0b8912a11e3f193eb79f131ee763..da3f2ca2615e0896878edf00f36577c85d2dc429 100644 (file)
@@ -208,7 +208,7 @@ static int remove_fetched_oids(struct repository *repo,
 
        if (remaining_nr) {
                int j = 0;
-               new_oids = xcalloc(remaining_nr, sizeof(*new_oids));
+               CALLOC_ARRAY(new_oids, remaining_nr);
                for (i = 0; i < oid_nr; i++)
                        if (remaining[i])
                                oidcpy(&new_oids[j++], &old_oids[i]);