summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-21 15:25:19 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-04-21 16:29:41 +0200
commit8b686b318b60e39ef36aae14311c07e5b72a5a5a (patch)
treee7121f1868b90a1f141cc527d04160fb30df002a
parentbe6996b792cea7a7371e07fb4efc86e5216f4f40 (diff)
downloadlibgit2-8b686b318b60e39ef36aae14311c07e5b72a5a5a.tar.gz
Correct argument order of git__calloc()
-rw-r--r--src/transports/smart_protocol.c2
1 files changed, 1 insertions, 1 deletions
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);