From 2f5b282aab78bd2378df428c57c5fd1cc09e9f4f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 18 Sep 2019 00:52:07 +0900 Subject: udevadm: missing initialization of descriptor --- src/udev/udev-ctrl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/udev') 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, }; -- cgit v1.2.1