diff options
Diffstat (limited to 'src/libudev/libudev.c')
-rw-r--r-- | src/libudev/libudev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c index e1ba82febf..e2ab960d55 100644 --- a/src/libudev/libudev.c +++ b/src/libudev/libudev.c @@ -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; |