projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf51a6
)
Zero automatic sockaddr
author
Geoff Levand
<geoff@infradead.org>
Tue, 27 Mar 2012 02:08:23 +0000
(19:08 -0700)
committer
Geoff Levand
<geoff@infradead.org>
Tue, 27 Mar 2012 02:08:23 +0000
(19:08 -0700)
Signed-off-by: Geoff Levand <geoff@infradead.org>
discover/udev.c
patch
|
blob
|
history
diff --git
a/discover/udev.c
b/discover/udev.c
index 798d744873ef049117323dcead7e989650102ae3..bd7c6bd1abb28f2038fb828e2253fc665632f661 100644
(file)
--- a/
discover/udev.c
+++ b/
discover/udev.c
@@
-122,6
+122,7
@@
struct udev *udev_init(struct device_handler *handler)
talloc_set_destructor(udev, udev_destructor);
+ memset(&addr, 0, sizeof addr);
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, PBOOT_DEVICE_SOCKET);