rtnl: use malloc0 instead of calloc

This commit is contained in:
Tom Gundersen
2013-10-29 16:12:11 +01:00
parent fe5c4e493e
commit dc7d8997aa
+1 -1
View File
@@ -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;