summaryrefslogtreecommitdiff
path: root/src/emaillog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emaillog.c')
-rw-r--r--src/emaillog.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/emaillog.c b/src/emaillog.c
index e896ebe..9e68a0b 100644
--- a/src/emaillog.c
+++ b/src/emaillog.c
@@ -1,6 +1,6 @@
/* -*- c-file-style: "java"; indent-tabs-mode: nil; tab-width: 4; fill-column: 78 -*-
*
- * Copyright 2007 Google Inc.
+ * Copyright 2007, 2009 Google Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -112,18 +112,14 @@ void dcc_maybe_send_email(void) {
== NULL) {
whom_to_blame = dcc_emaillog_whom_to_blame;
}
- char *will_send_message_to;
char *cant_send_message_to;
if (should_send_email == 0) return;
if (never_send_email) return;
- asprintf(&will_send_message_to, will_send_message_format, whom_to_blame);
+ rs_log_warning(will_send_message_format, whom_to_blame);
asprintf(&cant_send_message_to, cant_send_message_format, whom_to_blame);
- rs_log_warning(will_send_message_to);
- free(will_send_message_to);
-
if (email_fileno < 0) {
errno = email_errno;
perror(cant_send_message_to);