summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msg.c b/lib/msg.c
index 9fe9d54..6a8e14a 100644
--- a/lib/msg.c
+++ b/lib/msg.c
@@ -374,7 +374,7 @@ static struct nl_msg *__nlmsg_alloc(size_t len)
nm->nm_refcnt = 1;
- nm->nm_nlh = malloc(len);
+ nm->nm_nlh = calloc(1, len);
if (!nm->nm_nlh)
goto errout;