summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f69e0a)
raw | patch | inline | side by side (parent: 0f69e0a)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 15:22:16 +0000 (17:22 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 15:22:16 +0000 (17:22 +0200) |
src/netlink.c | patch | blob | history |
diff --git a/src/netlink.c b/src/netlink.c
index c5f66f835cd85d130a9f7c25f2e084453c17a34a..c8905d5ca10325c1b4100d003b90015315b2ac02 100644 (file)
--- a/src/netlink.c
+++ b/src/netlink.c
{
ir_ignorelist_t *entry;
- entry = malloc (sizeof (*entry));
+ entry = calloc (1, sizeof (*entry));
if (entry == NULL)
return (-1);
- memset (entry, '\0', sizeof (ir_ignorelist_t));
-
if (strcasecmp (dev, "All") != 0)
{
entry->device = strdup (dev);