diff options
Diffstat (limited to 'src/libsystemd-rtnl')
-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; |