checkout-index: fix --temp relative path mangling
[gitweb.git] / imap-send.c
index 0bc6f7fae151ea364e9d141b30b8e68d544a4448..45230e19cdd75e7424544a31a52c44bf275df55b 100644 (file)
@@ -951,7 +951,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;