chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
detect-virt: Fix Xen domU discovery
[elogind.git]
/
src
/
libudev
/
libudev.c
diff --git
a/src/libudev/libudev.c
b/src/libudev/libudev.c
index e1ba82febf0daaa31cea956f61dd563d31637fea..e2ab960d55e75aa1011366e65d82a121f5196c0c 100644
(file)
--- 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;