From: Tom Gundersen Date: Tue, 29 Oct 2013 14:57:54 +0000 (+0100) Subject: rtnl: use malloc0 instead of calloc X-Git-Tag: v209~1754 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc7d8997aa731cf68a078d901dafb809c90bd21a;p=thirdparty%2Fsystemd.git rtnl: use malloc0 instead of calloc --- diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c index 80ffb347ddc..17183ab9130 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;