chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] added ability to put format specifiers in the CALLOUT program string.
[elogind.git]
/
udev-add.c
diff --git
a/udev-add.c
b/udev-add.c
index 634a515c96db8e00665ffc86495e8a076e974089..068fd46f2746bb299b2d5739fc5144556861ff22 100644
(file)
--- a/
udev-add.c
+++ b/
udev-add.c
@@
-245,6
+245,8
@@
int udev_add_device(char *path, char *subsystem)
struct udevice dev;
int retval = -EINVAL;
+ memset(&dev, 0x00, sizeof(dev));
+
/* for now, the block layer is the only place where block devices are */
if (strcmp(subsystem, "block") == 0)
dev.type = 'b';