X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_email.c;fp=src%2Fnotify_email.c;h=eb9ec00c1dab97ad88f6dd1f9a486071ede4c577;hb=a396da422740caf336a6d594515e8d80de6f440a;hp=52cc83843f8f7ec163badaf08925a7d46ed55414;hpb=6c170c99262c1d9678943122428f6d9f1353aaf6;p=collectd.git diff --git a/src/notify_email.c b/src/notify_email.c index 52cc8384..eb9ec00c 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -43,14 +43,14 @@ static int recipients_len = 0; static smtp_session_t session; static pthread_mutex_t session_lock = PTHREAD_MUTEX_INITIALIZER; static smtp_message_t message; -static auth_context_t authctx = NULL; +static auth_context_t authctx; static int smtp_port = 25; -static char *smtp_host = NULL; -static char *smtp_user = NULL; -static char *smtp_password = NULL; -static char *email_from = NULL; -static char *email_subject = NULL; +static char *smtp_host; +static char *smtp_user; +static char *smtp_password; +static char *email_from; +static char *email_subject; #define DEFAULT_SMTP_HOST "localhost" #define DEFAULT_SMTP_FROM "root@localhost"