aboutsummaryrefslogtreecommitdiffstats
path: root/mailtrain.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailtrain.c')
-rw-r--r--mailtrain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailtrain.c b/mailtrain.c
index 0df0321..c2e3a6f 100644
--- a/mailtrain.c
+++ b/mailtrain.c
@@ -139,7 +139,7 @@ static int process_tmpdir(struct mailbox_transaction_context *ctx,
fd = open(buf, O_RDONLY);
read(fd, &wanted, sizeof(wanted));
- if (run_sendmail(fd, wanted)) {
+ if ((rc = run_sendmail(fd, wanted))) {
mail_storage_set_error(ctx->box->storage,
"failed to send mail");
debug("run program failed with exit code %d\n", rc);