]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fetch-pack.c
Merge branch 'cm/rebase-i-updates'
[thirdparty/git.git] / fetch-pack.c
index 6a61a464283e108915d216fb12828e06c8538f58..fb04a76ca263042b145b40adf1577a81c6d7e12d 100644 (file)
@@ -1916,7 +1916,7 @@ static void update_shallow(struct fetch_pack_args *args,
         * remote is also shallow, check what ref is safe to update
         * without updating .git/shallow
         */
-       status = xcalloc(nr_sought, sizeof(*status));
+       CALLOC_ARRAY(status, nr_sought);
        assign_shallow_commits_to_refs(si, NULL, status);
        if (si->nr_ours || si->nr_theirs) {
                for (i = 0; i < nr_sought; i++)