]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object-file.c
Merge branch 'en/ort-perf-batch-9'
[thirdparty/git.git] / object-file.c
index 5bcfde84718868ac6ae35cddfc102d4a13f0c502..624af408cdcd2aec95b1f54882a0c8027a60c723 100644 (file)
@@ -546,7 +546,7 @@ static int link_alt_odb_entry(struct repository *r, const char *entry,
                return -1;
        }
 
-       ent = xcalloc(1, sizeof(*ent));
+       CALLOC_ARRAY(ent, 1);
        ent->path = xstrdup(pathbuf.buf);
 
        /* add the alternate entry */