]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
Merge branch 'cm/rebase-i-updates'
[thirdparty/git.git] / transport-helper.c
index 49b7fb4dcb9a3012a9bdc60bc6fa581a47875e07..4cd76366fa94b8e3bb8314685fe4ff4b4380127c 100644 (file)
@@ -745,13 +745,13 @@ static int push_update_ref_status(struct strbuf *buf,
                        die(_("'option' without a matching 'ok/error' directive"));
                if (state->new_report) {
                        if (!state->hint->report) {
-                               state->hint->report = xcalloc(1, sizeof(struct ref_push_report));
+                               CALLOC_ARRAY(state->hint->report, 1);
                                state->report = state->hint->report;
                        } else {
                                state->report = state->hint->report;
                                while (state->report->next)
                                        state->report = state->report->next;
-                               state->report->next = xcalloc(1, sizeof(struct ref_push_report));
+                               CALLOC_ARRAY(state->report->next, 1);
                                state->report = state->report->next;
                        }
                        state->new_report = 0;