summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-09-18 00:52:07 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-09-18 01:29:40 +0900
commit2f5b282aab78bd2378df428c57c5fd1cc09e9f4f (patch)
treee17ec727f1eac4f97757d6664c1a7f9a2c33754d /src/udev
parent69cebea78a07f67436108323138356f99bb69d33 (diff)
downloadsystemd-2f5b282aab78bd2378df428c57c5fd1cc09e9f4f.tar.gz
udevadm: missing initialization of descriptor
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-ctrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index b38370883f..751e034982 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -76,6 +76,7 @@ int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) {
*uctrl = (struct udev_ctrl) {
.n_ref = 1,
.sock = fd >= 0 ? fd : TAKE_FD(sock),
+ .sock_connect = -1,
.bound = fd >= 0,
};