added memset to make mail stuff prettier
authorBrenden Matthews <brenden1@rty.ca>
Fri, 12 May 2006 18:06:12 +0000 (18:06 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Fri, 12 May 2006 18:06:12 +0000 (18:06 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@630 7f574dfc-610e-0410-a909-a81674777703

src/conky.c

index d5cd2cd..82b2c3a 100644 (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) {