summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:37 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:37 -0700
commit14e2ae6126509feeb379f490d925cccd3dd9f7c0 (patch)
tree14b36b1e0239ef1e915802cd0287a6bbda226aa5 /imap-send.c
parent70f003e1070f16594529d9fb0cc6c670c1e415e2 (diff)
parent693eb02a5e152668dacc7c6ff0f1c63d70c0a82a (diff)
downloadgit-14e2ae6126509feeb379f490d925cccd3dd9f7c0.tar.gz
Merge branch 'as/calloc-takes-nmemb-then-size'
Code clean-up. * as/calloc-takes-nmemb-then-size: calloc() and xcalloc() takes nmemb and then size
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 f33e56dba1..70bcc7a4e5 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -919,7 +919,7 @@ static struct imap_store *imap_open_store(struct imap_server_conf *srvc, char *f
ctx = xcalloc(1, sizeof(*ctx));
- ctx->imap = imap = xcalloc(sizeof(*imap), 1);
+ ctx->imap = imap = xcalloc(1, sizeof(*imap));
imap->buf.sock.fd[0] = imap->buf.sock.fd[1] = -1;
imap->in_progress_append = &imap->in_progress;