]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.c
Merge branch 'en/ort-perf-batch-9'
[thirdparty/git.git] / wt-status.c
index 0c8287a023e4d834f7b0a5a437f1b89c18f7c05c..1aed68c43c264c360de8282485c6c93a5dc43d08 100644 (file)
@@ -456,7 +456,7 @@ static void wt_status_collect_changed_cb(struct diff_queue_struct *q,
                it = string_list_insert(&s->change, p->two->path);
                d = it->util;
                if (!d) {
-                       d = xcalloc(1, sizeof(*d));
+                       CALLOC_ARRAY(d, 1);
                        it->util = d;
                }
                if (!d->worktree_status)
@@ -540,7 +540,7 @@ static void wt_status_collect_updated_cb(struct diff_queue_struct *q,
                it = string_list_insert(&s->change, p->two->path);
                d = it->util;
                if (!d) {
-                       d = xcalloc(1, sizeof(*d));
+                       CALLOC_ARRAY(d, 1);
                        it->util = d;
                }
                if (!d->index_status)
@@ -671,7 +671,7 @@ static void wt_status_collect_changes_initial(struct wt_status *s)
                it = string_list_insert(&s->change, ce->name);
                d = it->util;
                if (!d) {
-                       d = xcalloc(1, sizeof(*d));
+                       CALLOC_ARRAY(d, 1);
                        it->util = d;
                }
                if (ce_stage(ce)) {