chiark / gitweb /
rtnl: use malloc0 instead of calloc
[elogind.git] / src / libsystemd-rtnl / rtnl-message.c
index 80ffb347ddcb4de15f5746ee19fe6604c55f9461..17183ab9130d84d2998ce7e73026f2259adce283 100644 (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;