chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
everywhere: make use of new0() and macro() macros, and stop using perror()
[elogind.git]
/
src
/
libudev
/
libudev-queue.c
diff --git
a/src/libudev/libudev-queue.c
b/src/libudev/libudev-queue.c
index f67dba99584ab2dad1f74a7629924fcf14c144e5..2cb4d67121641351fc5fb7a49eec5e9cbc3020c8 100644
(file)
--- a/
src/libudev/libudev-queue.c
+++ b/
src/libudev/libudev-queue.c
@@
-69,7
+69,7
@@
_public_ struct udev_queue *udev_queue_new(struct udev *udev)
if (udev == NULL)
return NULL;
- udev_queue =
calloc(1, sizeof(struct udev_queue)
);
+ udev_queue =
new0(struct udev_queue, 1
);
if (udev_queue == NULL)
return NULL;
udev_queue->refcount = 1;