summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorArjun Sreedharan <arjun024@gmail.com>2014-08-30 06:54:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-03 21:35:37 (GMT)
commit693eb02a5e152668dacc7c6ff0f1c63d70c0a82a (patch)
tree8952b72fa82f945bf7335e140509eea935ce25eb /imap-send.c
parent96db324a73fdada6fbe7b63221986f8f18cc63b0 (diff)
downloadgit-693eb02a5e152668dacc7c6ff0f1c63d70c0a82a.zip
git-693eb02a5e152668dacc7c6ff0f1c63d70c0a82a.tar.gz
git-693eb02a5e152668dacc7c6ff0f1c63d70c0a82a.tar.bz2
calloc() and xcalloc() takes nmemb and then size
There are a handful more instances of this in compat/regex/ but they are borrowed code taht we do not want to touch with a change that really affects correctness, which this change is not. Signed-off-by: Arjun Sreedharan <arjun024@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 524fbab..02eb3e0 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -954,7 +954,7 @@ static struct imap_store *imap_open_store(struct imap_server_conf *srvc)
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;