diff options
author | Tom Gundersen <teg@jklm.no> | 2013-10-29 15:57:54 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-10-29 16:12:11 +0100 |
commit | dc7d8997aa731cf68a078d901dafb809c90bd21a (patch) | |
tree | 7342839453adb289ed067b26f1fcb100838b07e7 /src/libsystemd-rtnl/rtnl-message.c | |
parent | fe5c4e493e19f5b7979235783170c231dd7d008c (diff) |
rtnl: use malloc0 instead of calloc
Diffstat (limited to 'src/libsystemd-rtnl/rtnl-message.c')
-rw-r--r-- | src/libsystemd-rtnl/rtnl-message.c | 2 |
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; |