X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fnotify_email.c;h=6b32ad9a4f21f25aa4236a20a75699fa7058afdc;hp=52cc83843f8f7ec163badaf08925a7d46ed55414;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=1b10ab706f8b70ce2f086e59a54cc09d671ad989 diff --git a/src/notify_email.c b/src/notify_email.c index 52cc8384..6b32ad9a 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -38,19 +38,19 @@ static const char *config_keys[] = {"SMTPServer", "SMTPPort", "SMTPUser", static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); static char **recipients; -static int recipients_len = 0; +static int recipients_len; 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"