Commit 8b686b31 by Jacques Germishuys

Correct argument order of git__calloc()

parent be6996b7
...@@ -628,7 +628,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt) ...@@ -628,7 +628,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt)
switch (pkt->type) { switch (pkt->type) {
case GIT_PKT_OK: case GIT_PKT_OK:
status = git__calloc(1, sizeof(push_status)); status = git__calloc(sizeof(push_status), 1);
GITERR_CHECK_ALLOC(status); GITERR_CHECK_ALLOC(status);
status->msg = NULL; status->msg = NULL;
status->ref = git__strdup(((git_pkt_ok *)pkt)->ref); status->ref = git__strdup(((git_pkt_ok *)pkt)->ref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment