1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

added memset to make mail stuff prettier

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@630 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-05-12 18:06:12 +00:00
parent ff1404dab2
commit 5ac5aaece1

View File

@ -1076,6 +1076,7 @@ int register_thread(struct thread_info_s *new_thread)
struct mail_s* parse_mail_args(char type, const char *arg) {
struct mail_s *mail;
mail = malloc(sizeof(struct mail_s));
memset(mail, 0, sizeof(struct mail_s));
char *tmp;
if (sscanf(arg, "%128s %128s %128s", mail->host, mail->user, mail->pass) != 3) {
if (type == POP3) {