aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index cf64485d85..ac2e71b7b5 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -926,7 +926,7 @@ void *mail_call_main(mail_call_t type, MailMainFunc func, ...)
m = mail_msg_new(&mail_call_op, reply, sizeof(*m));
m->type = type;
m->func = func;
- m->ap = ap;
+ va_copy(m->ap, ap);
if (!ismain) {
e_msgport_put(mail_gui_port, (EMsg *)m);