chiark / gitweb /
everywhere: make use of new0() and macro() macros, and stop using perror()
[elogind.git] / src / libudev / libudev.c
index e1ba82febf0daaa31cea956f61dd563d31637fea..e2ab960d55e75aa1011366e65d82a121f5196c0c 100644 (file)
@@ -121,7 +121,7 @@ _public_ struct udev *udev_new(void)
         const char *env;
         FILE *f;
 
-        udev = calloc(1, sizeof(struct udev));
+        udev = new0(struct udev, 1);
         if (udev == NULL)
                 return NULL;
         udev->refcount = 1;