chiark / gitweb /
everywhere: make use of new0() and macro() macros, and stop using perror()
[elogind.git] / src / libudev / libudev-list.c
index c6e5a61fe9bf56facc9232f225fab44080db48a8..42fcb853c7bf3286208096e7cb821ef305bde822 100644 (file)
@@ -165,7 +165,7 @@ struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *
         }
 
         /* add new name */
-        entry = calloc(1, sizeof(struct udev_list_entry));
+        entry = new0(struct udev_list_entry, 1);
         if (entry == NULL)
                 return NULL;
         entry->name = strdup(name);