From 8b686b318b60e39ef36aae14311c07e5b72a5a5a Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Mon, 21 Apr 2014 15:25:19 +0200 Subject: [PATCH] Correct argument order of git__calloc() --- src/transports/smart_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c index cf67f9078..5dd6bab24 100644 --- a/src/transports/smart_protocol.c +++ b/src/transports/smart_protocol.c @@ -628,7 +628,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt) switch (pkt->type) { case GIT_PKT_OK: - status = git__calloc(1, sizeof(push_status)); + status = git__calloc(sizeof(push_status), 1); GITERR_CHECK_ALLOC(status); status->msg = NULL; status->ref = git__strdup(((git_pkt_ok *)pkt)->ref);