summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl/rtnl-message.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-29 15:57:54 +0100
committerTom Gundersen <teg@jklm.no>2013-10-29 16:12:11 +0100
commitdc7d8997aa731cf68a078d901dafb809c90bd21a (patch)
tree7342839453adb289ed067b26f1fcb100838b07e7 /src/libsystemd-rtnl/rtnl-message.c
parentfe5c4e493e19f5b7979235783170c231dd7d008c (diff)
rtnl: use malloc0 instead of calloc
Diffstat (limited to 'src/libsystemd-rtnl/rtnl-message.c')
-rw-r--r--src/libsystemd-rtnl/rtnl-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c
index 80ffb347dd..17183ab913 100644
--- a/src/libsystemd-rtnl/rtnl-message.c
+++ b/src/libsystemd-rtnl/rtnl-message.c
@@ -51,7 +51,7 @@ static int message_new(sd_rtnl_message **ret, size_t initial_size) {
if (!m)
return -ENOMEM;
- m->hdr = calloc(initial_size, 1);
+ m->hdr = malloc0(initial_size);
if (!m->hdr) {
free(m);
return -ENOMEM;