summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 12:17:50 -0700
committerJunio C Hamano <gitster@pobox.com>2014-06-16 12:17:50 -0700
commita634a6d209fc67ed8fb58925a6ae713b2a913a83 (patch)
treef0d17737e519bc1de9bc89bba5ddcc57366f847c /imap-send.c
parent6d681f0a3e1fd10d4f51df3a90af30f4de299f89 (diff)
parent92e25b6b5b66320e73ace921f3db816ef4243d1b (diff)
downloadgit-a634a6d209fc67ed8fb58925a6ae713b2a913a83.tar.gz
Merge branch 'bg/xcalloc-nmemb-then-size'
Like calloc(3), xcalloc() takes nmemb and then size. * bg/xcalloc-nmemb-then-size: transport-helper.c: rearrange xcalloc arguments remote.c: rearrange xcalloc arguments reflog-walk.c: rearrange xcalloc arguments pack-revindex.c: rearrange xcalloc arguments notes.c: rearrange xcalloc arguments imap-send.c: rearrange xcalloc arguments http-push.c: rearrange xcalloc arguments diff.c: rearrange xcalloc arguments config.c: rearrange xcalloc arguments commit.c: rearrange xcalloc arguments builtin/remote.c: rearrange xcalloc arguments builtin/ls-remote.c: rearrange xcalloc arguments
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap-send.c b/imap-send.c
index 5c4f336330..83a6ed2ac3 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -952,7 +952,7 @@ static struct imap_store *imap_open_store(struct imap_server_conf *srvc)
char *arg, *rsp;
int s = -1, preauth;
- ctx = xcalloc(sizeof(*ctx), 1);
+ ctx = xcalloc(1, sizeof(*ctx));
ctx->imap = imap = xcalloc(sizeof(*imap), 1);
imap->buf.sock.fd[0] = imap->buf.sock.fd[1] = -1;