summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5cc61c)
raw | patch | inline | side by side (parent: d5cc61c)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 13:50:42 +0000 (15:50 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 13:50:42 +0000 (15:50 +0200) |
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 8898c087020c84d465f42d1569abb193b9230890..ea4e7850138060891d132f5e3a46ecc6ca2cd35d 100644 (file)
--- a/src/email.c
+++ b/src/email.c
break;
}
- connection = malloc (sizeof (*connection));
+ connection = calloc (1, sizeof (*connection));
if (connection == NULL)
{
close (remote);
continue;
}
- memset (connection, 0, sizeof (*connection));
connection->socket = fdopen (remote, "r");
connection->next = NULL;